getColumnName()

Get a table column name.

Syntax

getColumnName(
   tableName  STRING, 
   idx INTEGER  )
  RETURNS STRING
  1. tableName is the name of the table.
  2. idx is the column index number

Usage

You can use it to retrieve the column name from a table to test this action in a scenario. For example:

FOR i = 1 TO ggc.getColumnCount("items")
  DISPLAY SFMT("Column %1: %2", i, ggc.getColumnName(items, i))
END FOR