<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><<a href="mailto:wkitty42@windstream.net">wkitty42@windstream.net</a>> schrieb am Mi., 25. März 2020, 18:47:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/24/20 6:58 PM, Sven Barth via fpc-pascal wrote:<br>
> <a href="mailto:wkitty42@windstream.net" target="_blank" rel="noreferrer">wkitty42@windstream.net</a> schrieb am Di., 24. März 2020, 18:37:<br>
> <br>
>> you should figure out why typed constants are not being allowed/used<br>
>> in your setup...<br>
> <br>
> Typed constants can not be used to initialize constants.<br>
<br>
<br>
hummm... ok, so how to you get a constant to be a byte and storing 7 for the <br>
decimal value?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The compiler normally uses the smallest possible type that can represent the value. You can force it however by using e.g.</div><div dir="auto"><br></div><div dir="auto">const</div><div dir="auto">  MyConst = Word(42);</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
or are you saying that you cannot use a typed constant in the init of another <br>
(typed) constant?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Correct.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>