Integer constant expected - An
This error can occur when attempting to use a numeric variable to dictate the size of the target of a fixed-length or Nul-Terminated string pointer. For example:
DIM X AS STRING PTR * Y&
…is not permitted as this statement could only be evaluated at run-time. However:
DIM X AS STRING PTR * 1024
…is acceptable as the target size is known at compile-time.
Another cause of this error is specifying a non-integral CASE argument in a SELECT CASE AS CONST block.