File_Type()
PURPOSE
The file_type() function will return the file type in a Char.
PARTS
| 1 f/c/e | Required - The file number/handle to be checked. |
RETURN TYPE - A
| TYPE | TDFXBC - The type of file being opened. The options are: T - TAS Professional, D - dBASEIII+ (non-CodeBase), F - Fixed length records (SDF), X - Text type, B - non-TAS Professional Btrieve files and C - Codebase |
Example
filetype:
define F_type type a size 1
define data_hndl type i
openv 'data' fnum data_hndl
F_type = file_type(data_hndl)
if F_type = 'C' then msg 'Codebase'
if f_type = 'T' then msg 'Btrieve'
if f_type = 'B' Then msg 'Non-Tas'
ret
COMMENTS
The Return Char should correspond to the type option from the open commands.
Page url: http://www.cassoftware.com/tas/manual/filetype.htm