|
A column name was expected at this position.
In HareScript, column names can either be specified as a normal identifier, or quoted inside double quotes if the column name is a reserved keyword or contains spaces. Both examples are shown in the following example:
// Some function returing a record
RECORD myrec := GetRecordFromAFunction();
// Accessing a column by specifying its name as a normal identifier
PRINT (myrec.title); // 'title' is the column name in
// this print statement
// Accessing a column named record (a reserved keyword)
// by using quotes
PRINT (myrec."record"); |
To get a column from a record whose name you only know at run-time you can use the GetCell statement. << Back to errors overview
|