Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
5-31
FILE_GETINFO_ 
Obtains a limited set of information about a file identified by file number.
error := FILE_GETINFO_ ( filenum
 ,[ last-error ]
 ,[ filename:maxlen ]
 ,[ filename-length ]
 ,[ type-info ] 
 ,[ flags ] );
error, INT returned value
filenum, INT:value input
last-error, INT .EXT:ref:1 output
filename:maxlen, STRING .EXT:ref:*,INT:value output:input
filename-length, INT .EXT:ref:1 output
type-info, INT .EXT:ref:5 output
[0] = Device type.
[1] = Device subtype.
Object type. 
[2] =
>0 = SQL disk file.
 0 = Non-SQL disk file. 
-1 = Not a disk file.
[3] File type.
 0 = Unstructured disk file.
 1 = Relative disk file.
 2 = Entry-sequenced disk file.
 3 = Key-sequenced disk file.
-1 = Not a disk file.
[4] File code. 
>=0 = Disk file.
-1 = Not a disk file.
flags, INT .EXT:ref:1 output










