Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
| Syntax: | LAST(lun [,EXCP=statement-label]) |
| Discussion: |
The LAST function returns the value of the last key in the file
that is open on the specified logical unit number.
The
last key is the highest ASCII valued key
contained in the file.
Notes:
|
| Example: |
OPEN (1) "SALES" LASTKEY$ = LAST(1,EXCP=9999)In the above example, the LAST function is used to determine the value of the last key in the SALES file. If an exception occurs when this statement is executed, program control will transfer to exception-statement-label 9999. |