ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 26 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / WLanguage functions / Standard functions / Mobile Device (Pocket PC) access functions
  • 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.
Remarks:
  • ceFileDate can be used only if a connection is established between the current computer and the Mobile device (ceConnect).
  • 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 get the details of the error, 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

ceFileDate and fDate have equivalent operating modes.
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.
Component: wd260ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/26/2021

Send a report | Local help