[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson