This Subroutine creates an INLINE table for an in-memory table that contains all the column names
More arguments could be passed to extend this subroutine to create a more helpful table
SUB Get_Table_Column_Names(mTable_Name)
/*
Create a temporary INLINE memory table named 'zTable_ColNames' with the following columns:
- column
Table is created and CONCATENATED to within this subroutine.
Args:
- mTable_Name - The name of the in memory table that the mehtod is gathering all the column names for
*/
FOR i = 1 to NoOfFields('$(mTable_Name)')
LET vField = FieldName(i, '$(mTable_Name)');
TRACE vField = $(vField);
zTable_ColNames:
ADD LOAD * INLINE [
column
$(vField)
];
NEXT
END SUB;