|
|
|
|
- Managing errors
- Equivalence
ceListFile (Function) In french: ceListeFichier Lists the files found in a directory (and in its subdirectories) and returns the number of listed files. The directory used is found on the Mobile Device (Pocket PC) connected to the current computer. ceListFile automatically calls a specific procedure written in WLanguage for each listed file. This procedure is used to handle the current file. Remarks: - ceListFile 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.
// Lists the ".BMP" files found in "\MyDocuments". // The FileAttribute procedure returns the number of read-only files. ResListFile = ceListFile("\MyDocuments\*.BMP", FileAttribute)
Syntax
<Result> = ceListFile(<Path and generic name of files> , <WLanguage procedure> [, <Pointer>])
<Result>: Integer Number of listed files. <Path and generic name of files>: Character string (with quotes) Path and generic name of files to list. The generic characters (* and?) are allowed. <WLanguage procedure>: Procedure name Name of WLanguage procedure ("callback" procedure) that will be called for each listed file. This procedure is used to handle the current file. For more details on this procedure, see Parameters of the procedure used by ceListFile. <Pointer>: Optional integer Pointer passed to <Procedure name>. Remarks Managing errors Caution: ceListFile returns no error code. To find out if this function has generated an error, use ErrorInfo with the errMessage constant. Equivalence ceListFile and fListFile have similar operating modes. The only difference is: - ceListFile uses a directory on the Mobile Device (Pocket PC) from a standard WINDEV application.
- fListFile uses a directory on the Mobile Device (Pocket PC) only from a WINDEV Mobile application.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|