Intermec PM23c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 20
About Constants, Variables, and Expressions, Variable Name Examples
View all Intermec PM23c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 20 highlights
Chapter 2 - Understanding Fingerprint Syntax About Constants, Variables, and Expressions Constants are fixed text or values. There are two kinds of constants: • String constants are sequences of text. Numbers and other characters are considered part of the sequence and are not processed. String constants must always be enclosed by double quotation marks (ASCII 34 decimal); for example, "TEST.PRG". If the string constant is the last part of a line, the closing quotation mark is optional. • Numeric constants are fixed values. Only decimal integers are allowed (1, 2, 3, and so on). Values are positive unless preceded by a minus sign (-). Optionally, you can indicate a positive value using a leading plus sign (+). Variables also hold data, but their contents can change. You can specify the contents of a variable or use it as a container for data from Fingerprint operations. There are two types of variables: • String variables store sequences of text. The maximum size of a string is 64 Kb (65,535 characters). String variables are indicated by a trailing $ sign, as in these examples: A$="INTERMEC" B$ = TIME$ LET C$ = DATE$ • Numeric variables store only numbers. The maximum value of a numeric variable is 2,147,483,647. Numeric variables are indicated by a trailing % sign, as in these examples: A% = 150 B% = DATEDIFF("031201","031230") LET C% = 2^2 A variable name can include letters, numbers, and decimal points. The first character must always be a letter, and the complete name must not be identical to any keywords or keyword abbreviations. If part of the variable name is identical to a keyword or keyword abbreviation, other characters must precede and follow that part of the variable name or errors will result. The next table lists some examples. Variable Name Examples Variable Name LOC$ LOCK$ CLOC$ CLOCK$ Description LOC is a keyword. This will cause an error. LOC is not preceded by other characters. This causes an error. LOC is not followed by other characters. This causes an error. LOC is preceded by C and followed by K. This variable name is valid. Note: Intermec suggests that all variables and line labels start with a q. For a list of reserved keywords, see "Reserved Keywords and Symbols" on page 137. 8 Fingerprint Developer's Guide