meta data for this page
ibec_FileAttr
Description
ibec_FileAttr returns the attributes of the file as an integer value which represents a string of bits. In case of any error (when the specified file doesn't exist, for example) ibec_FileAttr returns NULL.
This function supports Unicode (UTF8) file names. You can still use ANSI names, necessary checks and conversion are performed automatically.
Syntax
function ibec_FileAttr(FileName : string) : variant;
Example
FileAttr = ibec_FileAttr(TargetFileName); if (ibec_and(OldFileAttr, __faReadOnly) = __faReadOnly) then ibec_SetFileAttr(TargetFileName, ibec_xor(OldFileAttr, __faReadOnly));