Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

FILEINFO

Description

Use the FILEINFO function to return information about the specified file variable. It takes the general form: 

FILEINFO(file.variable, key)

This function is currently limited to return values to determine if the file variable is a valid file descriptor variable.

Key Return Status returns 1 if file.variable is a valid files variable, or 0 if not.  

0001     OPEN "test_rec" TO FILE_VAR ELSE ABORT 201, "THIS FILE "
0002     IF FILEINFO(FILE_VAR, 0) = 1 THEN CRT "FILE INFORMATION IS VALID"
0003     ELSE
0004         CRT "INVALID INFORMATION"
0005     END



Go back to jBASE BASIC.

Was this article helpful?