| ABS | Index Level | ACCESS |
| Syntax | |
| Category | BASIC |
| Type | Definition |
| Description | any numeric constant or any arithmetic, logical, or string expression which evaluates to a valid numeric value, used to reference an "attribute count" within statements, functions, and array or string variables which require or allow them. See "data representation" for valid numeric values. |
| Options | |
| See Also | data representation LT WRITEV array references REPLACE > vc.expression READV INS < WRITEVU sc.expression INSERT LOCATE EXTRACT ( ) |
| Example |
readv company.name from customer.file,cust.id,1 else...
In this example, "1" is the ac.expression. apos = 2 readv company.address from customer.file,cust.id,apos else.. The variable "apos" must be numeric; in this case it is a 2. customer.item<1> = "test string" The numeric constant "1" indicates attribute 1 of the string in the "customer.item" variable. audit.item<bpos+i> = amount.list<bpos> The arithmetic expression, "bpos+i", calculates the attribute position in "audit.item". |
| Warnings |
"ac.expression" must evaluate to a numeric, otherwise, FlashBASIC runtime displays the following warning message:
[b16] in program 'pgm', line n: Non-numeric data when numeric required; zero used. In the case of a "readv", the above message is followed by: [b18] in program 'pgm', line n: Attribute number less than -1 is illegal. |
| Compatibility | D3 7.0 AP R83 |
| ABS | Index Level | ACCESS |