Skip to content

FROM statement doesn't recognize a BYTE/WORD variable as a variable #34

@andresdelfino

Description

@andresdelfino

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions