Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   Errors reference
  Home |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
Errors reference
 

Expecting a column name

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

 
Related
Download documents
The online documents are also available for download in PDF format, for offline use.
Read more...
 
Top To top of page