Futurebasic/Language/Reference/filesstring function
Appearance
FILES$
[edit | edit source]Function
[edit | edit source]✔ Appearance ✔ Standard ✔ Console
Syntax
[edit | edit source]fileType$ = FILES$
Description
[edit | edit source]Returns the file type of the last file returned by the FILES$(_fOpen
...)
function, as a 4-character string. If the user clicked "cancel" in response to the last File Open dialog, or if the FILES$(_fOpen
...)
function has never yet been executed, then the FILES$
function returns an empty (zero-length) string.
Note:
In some cases it's useful to express the file type as a 4-byte long integer rather than as a string. Use the MKI$
function and the CVI
function to convert between these two forms.