<< ibec_ForceDirectories | IBEBlock | ibec_SetFileAttr >>

ibec_FileAttr

Syntax

 function ibec_FileAttr(FileName : string) : variant;

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.

Example

 FileAttr = ibec_FileAttr(TargetFileName);
 if (ibec_and(OldFileAttr, __faReadOnly) = __faReadOnly) then
   ibec_SetFileAttr(TargetFileName, ibec_xor(OldFileAttr, 
 __faReadOnly));

See also:
ibec_SetFileAttr

back to top of page
<< ibec_ForceDirectories | IBEBlock | ibec_SetFileAttr >>