[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILECCLOSE()
 Closes a file after backup mode
------------------------------------------------------------------------------
 Syntax

     FILECCLOSE() --> lClosed

 Returns

     FILECCLOSE() returns .T., when the the file that was opened with
     FILECOPY() is successfully closed.

 Description

     FILE COPY CLOSE
     After you copy on multiple disks, this function should be routinely
     called.  This is to prevent the source file, previously designed with
     FILECOPY(), from remaining open.  For example, this may occur if you
     terminate the copy procedure.

 Note

     .  Regardless of the share mode, all other users are not allowed
        access. This situation stays this way without needing a file handle.

 Example

     Show a back up with FILECOPY().  After terminating, close the source
     file:

     FILECOPY(cSource, cTarget, .T.)      // Back up mode
     DO NEXTDISK                          // When terminated   Terminated =
     .T.
     DO WHILE FILECOPEN() .AND. .NOT. Terminated
        FILECCONT(cTarget)                // Next disk, new name
        DO NEXTDISK                       // Request for disk exchange
     ENDDO
     IF Terminated
        FILECCLOSE()                      // Close source file!
     ENDIF


See Also: FILECOPY() FILECCONT() FILECOPEN()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson