|
|
|
|
- Managing errors
- Creation date, modification date or access date
- Equivalence
ceFileDate (Function) In french: ceDateFichier 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.
// 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:
| | fAccess | Date of last access to the file. | fCreation | Date of file creation. | fModify (Default value) | Date of last file modification. |
Remarks 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. 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|