Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- LanMan Library Reference Guide - <b>ll_i2attr()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LL_I2ATTR()
 Convert numerical file attributes to a character string
------------------------------------------------------------------------------

 Syntax

      LL_I2Attr( <nInteger> ) -> cAttributes

 Arguments

     <nInteger> is a 16-bit integer containing numeric file attributes

 Returns

     <cAttributes>, which is a character string containing the converted
     file attributes

 Description

     LL_I2Attr() can be used to convert the numerical file attributes
     returned by LF_FindFirst(), LF_FindNext(), LF_Directory(),
     LF_GetFAttr(), LF_GetFInfo() and LF_GetHInfo() of the LFN Library
     (or numerical file attributes obtained in any other way) to a character
     string. The length of the returned string depends on how many bits are
     set in the attribute integer. If none of bits 0-5 is set, an empty
     string is returned.

     The characters in the first column of the table below are returned
     for the different bits in <nInteger> if the bit in question is
     turned on. Related #defines for the attribute bits (from LFNLIB.CH)
     are listed in the fourth column):

     R    Read-only       Bit 0 set     LFN_READONLY
     H    Hidden          Bit 1 set     LFN_HIDDEN
     S    System          Bit 2 set     LFN_SYSTEM
     V    Volume label    Bit 3 set     LFN_VOLLABEL
     D    Directory       Bit 4 set     LFN_DIRECTORY
     A    Archive         Bit 5 set     LFN_ARCHIVE

 Examples

     // aFileInfo has previously been returned by LF_FindFirst(). Now
     // examine the LFN_ATT element to see if it is a hidden file:
     if 'H' $ LL_I2Attr( aFileInfo[LFN_ATT] )
        ? 'The file is hidden'
     else
        ? 'The file is not hidden'
     endif

 Source: I2ATTR.ASM

 Author: Klas Engwall <klas.engwall@engwall.com>

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson