PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Managing errors
  • Creation date, modification date or access date
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns or modifies the different dates associated with a file (creation, modification or access). This file is found on the Mobile Device (Pocket PC) connected to the current computer.
Notes:
  • ceFileDate can be used only if a connection is established between the current computer and the Mobile device (ceConnect).
  • Versions 20 and later
    This function is available in 64-bit mode.
    New in version 20
    This function is available in 64-bit mode.
    This function is available in 64-bit mode.
Example
// Find out the creation date of "\MyFiles\File.txt"
// found on the Mobile device connected to the current computer
ResDate = ceFileDate("\MyFiles\File.txt", "", fCreation)
// Display the date
Info("This file was created on:" + DateToString(ResDate))
// Modify the date of the last access to "\MyFiles\File.txt"
// found on the Mobile device connected to the current computer
ceFileDate("\MyFiles\File.txt", "20040201", fAccess)
Syntax
<Result> = ceFileDate(<File Path> [, <New Date> [, <Type of Date>]])
<Result>: Character string
  • Date associated with the specified file (in YYYYMMDD format),
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<File Path>: Character string (with quotes)
Name and full path of the file to use. This file is found on the Mobile device connected to the current computer.
<New Date>: Optional character string (with quotes)
  • Modifying a date: new date associated with the file (in "YYYYMMDD"n format).
  • Reading a date: empty string ("").
<Type of Date>: Optional Integer constant
Indicates the date to handle:
fAccessDate of last access to the file.
fCreationDate of file creation.
fModify
(Default value)
Date of last file modification.
Remarks

Managing errors

ceFileDate generates an error in the following cases:
  • the specified file is opened or the file is locked by another application,
  • the specified file does not exist,
  • the name of the specified file is invalid,
  • the year of one of the file dates is before 1980,
  • the format of <New Date> is incorrect.
  • ...

Creation date, modification date or access date

In some cases, the dates associated with a file (creation date, modification date and access date) may be identical.

Equivalence

The operating mode of ceFileDate is equivalent to the operating mode of fDate.
The only difference is:
  • ceFileDate handles a file or a directory found on the Mobile Device from a WINDEV application.
  • fDate handles a file or a directory found on the Mobile Device only from a WINDEV Mobile application.
Components
WINDEVReports and Queries wd230ce.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment