[fpc-pascal] For Loop with QWord
James Richters
james.richters at productionautomation.net
Tue Jan 3 15:49:18 CET 2023
I'm wondering why I can't have the following:
Var
I: QWord;
Begin
For I := 1 To N Do
.
It generates an error:
Error: Ordinal expression expected
If I change it to LongInt, then it works, but the question is, why can't I
use a Qword here if I know I will never need I to be a negative number?
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230103/ba72604a/attachment-0001.htm>
More information about the fpc-pascal
mailing list