Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>setfcreate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SETFCREATE()
 Default attribute for creating with CA-Clipper Tools functions
------------------------------------------------------------------------------
 Syntax

     SETFCREATE([<nNewFileAttr>]) --> nOldFileAttr

 Argument

     <nNewFileAttr>  Designates a file attribute for a new file.

 Returns

     SETFCREATE() returns the current default attribute or the previous file
     attribute, if the parameter is specified.

 Description

     CA-Clipper Tools functions use a value of 32 (setting the ARCHIVE bit)
     to preset the default for file creation.  For example, use SETFCREATE()
     when a file needs to acquire another attribute in a network environment.

     Table 7-22:  Coding the File Attribute
     ------------------------------------------------------------------------
     Value   Symb. constants     Assigned attribute
     ------------------------------------------------------------------------
     0       FA_NORMAL
     1       FA_READONLY         READ ONLY (Read-only)
     2       FA_HIDDEN           HIDDEN (Hidden files)
     4       FA_SYSTEM           SYSTEM (System files)
     32      FA_ARCHIVE          ARCHIVE (Changes since last backup)
     ------------------------------------------------------------------------

 Note

     .  The set values only apply to files you create with CA-Clipper
        Tools functions.

 Examples

     .  Create a read-only file:

        SETFCREATE(1)
        STRFILE("Nantucket", "TEST.TXT")

     .  Query the attribute set:

        ? SETFCREATE()


See Also: STRFILE() FILECOPY() FILECCONT() FILEAPPEND()

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