Hi everybody,
I am new to Progress and currently getting known to 4GL. I wanted to write a small application, which reads the name of a table, counts the amount of records in the table an writes out this number. It could look like this:
DEFINE VARIABLE myCounter AS INTEGER.
DEFINE VARIABLE tableName AS CHARACTER.
/* The code in the trigger: */
myCounter = 0.
ASSIGN tableName = FILL-IN-2:SCREEN-VALUE.
FOR EACH tableName:
myCounter = myCounter + 1.
END.
ASSIGN FILL-IN-4:SCREEN-VALUE = STRING(billigCounter).
It won't compile, because 'tableName' isn't a valid table name. What kind of variable do I have to define so that 'tableName' is not recognized as a table, but as a variable which holds the table name ???
Thanks in advance
Mario
I am new to Progress and currently getting known to 4GL. I wanted to write a small application, which reads the name of a table, counts the amount of records in the table an writes out this number. It could look like this:
DEFINE VARIABLE myCounter AS INTEGER.
DEFINE VARIABLE tableName AS CHARACTER.
/* The code in the trigger: */
myCounter = 0.
ASSIGN tableName = FILL-IN-2:SCREEN-VALUE.
FOR EACH tableName:
myCounter = myCounter + 1.
END.
ASSIGN FILL-IN-4:SCREEN-VALUE = STRING(billigCounter).
It won't compile, because 'tableName' isn't a valid table name. What kind of variable do I have to define so that 'tableName' is not recognized as a table, but as a variable which holds the table name ???
Thanks in advance
Mario