The FROM statement expects its variable to be of type INT; if it's BYTE or WORD, an "expecting a variable" error occurs.
This can be tested with this code:
PROGRAM test;
PRIVATE
WORD perrito;
BEGIN
FROM perrito=0 TO 1;
END
FOR (perrito = 0;;)
END
END
Notice that the FOR statement works perfectly with a WORD or BYTE variable.
The
FROMstatement expects its variable to be of typeINT; if it'sBYTEorWORD, an "expecting a variable" error occurs.This can be tested with this code:
Notice that the FOR statement works perfectly with a
WORDorBYTEvariable.