Intermec PF4i Fingerprint Developer's Guide (old) - Page 24
About Constants, Variables, and Expressions, Variable Name Examples - parts list
View all Intermec PF4i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 24 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 characters. Digits or operators are considered part of the sequence of characters and are not processed. String constants must always be enclosed by quotation marks (ASCII 34 decimal), for example "TEST.PRG". If the string constant comes last on a line, the appending quotation mark can be excluded. • Numeric constants are fixed numeric values. Only decimal integers are allowed (1, 2, 3, and so on). Values are positive unless preceded by a minus sign (-). Optionally, positive values may be indicated by a leading plus sign (+). A leading minus sign is required for negative values. Variables are value holders. There are two main types: • String variables are used to store strings entered as string constants or produced by Fingerprint operations. Maximum size is 64 kbytes (65,535 characters). String variables are indicated by a trailing $ sign, as in these examples: A$="INTERMEC" B$ = TIME$ LET C$ = DATE$ • Numeric variables are used to store numbers entered as numeric constants or produced by Fingerprint operations. Maximum value 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 may consist of 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 will cause an error. LOC is not followed by other characters. This will cause an error. LOC is preceded by C and followed by K. This variable name will not cause errors. For a list of reserved keywords, see "Reserved Keywords and Symbols" on page 157. An expression can be either a constant or a variable. There are two types of expressions: 8 Intermec Fingerprint Developer's Guide