Hi
I have been looking at using IMPORT FGL to aid the use of subdialogs. The following code will not compile:
imported.4gl
PUBLIC CONSTANT MAXCOLSPERTABLE = 100
import_test.4gl
IMPORT FGL imported
MAIN
CONSTANT MYCONST = 100
DEFINE idx SMALLINT,
arrA ARRAY[MYCONST] OF INTEGER,
arrB ARRAY[MAXCOLSPERTABLE] OF INTEGER
LET idx = MAXCOLSPERTABLE
END MAIN
The compiler complains about the MAXCOLSPERTABLE being used to define the array size as it believes it is undefined, yet is happy with the LET statement and when using a local constant (MYCONST). Is this to be expected?
Thanks
Gary