PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Managing errors
  • 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
ceListFile (Function)
In french: ceListeFichier
Lists the files found in a directory (and in its sub-directories) 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).
  • 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
// 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 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.
Component : wd250ce.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment