String
String
A String is the ePOS data type for parameters, which can contain any keyboard characters. The maximum length of a string is not limited.
String constants are enclosed in simple (straight) quotes ( ’ ). If a string should contain an apostrophe, it must be escaped with \.
For example: SQL = ’SELECT * FROM ADDRESS WHERE NAME = \’ABB\’’
results in the String: SELECT * FROM ADDRESS WHERE NAME = ’ABB’
Please note:
ePOS strictly observes the data type of constants. Thus, 1 is a decimal or an integer, while ’1’ represents a string. The difference is that strings cannot occur in mathematical expressions. The statement "Number1 = Number2 +’1’" returns a syntax error. However, the statement "Ident = ’HZ’ + ’314’" is correct; the parameter Ident is assigned the value ’HZ314’.