FileCDaTi

FileCDaTi

Determines which date the target file contains with a FileCopy().

Syntax

      FileCDaTi([<lNewMode>]) --> <lOldMode>

Argument

<lNewMode> : Designates the new status for FileCDaTi(). When .T. is designated, the target file contains the source file date; when it is .F., the system date. The default is the source file date (.T.).

Returns

If no parameter is designated, FileCDaTi() returns the current setting for FileCDaTi(); otherwise, it returns the previous setting.

Description

FILE COPY DATE TIME

FileCDaTi() Determines whether a source file’s date and time stamp or the system’s date and time stamp, should be used to create or copy a file. Use original or system time for a file copy process.

When you partition to several disks in backup mode, this concerns all target files. Default is .T., where the target file contains the date and time of the source file. If you call FileCDaTi() with the parameter designated .F., then the target file contains the system date and time.

Notes

. Use this function before FileCopy().

. If the target file contains a unique setting such as a pseudo serialization, use the SETFDATI() function.

Examples

      .  Query the FileCDaTi() setting:
         ? FileCDaTi()            // The current setting
      .  The target file is to contain the system date and time:
         ? FileCDaTi(.F.)         // Returns the previous setting

Seealso

FileCopy(),  FileCCont(), FileCClose()

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s