AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Handling errors
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Lists the subdirectories of a given directory and returns the full paths of listed subdirectories.
Other uses: For each directory found, fListDirectory can automatically call a special procedure written in WLanguage. This procedure is used to handle the current directory. In this case, fListDirectory returns the number of listed directories.
Reportes y Consultas
ADirectory, ResListDirectory are strings
DirectoryToList is string
DirectoryToList = "C:\MyDocuments"

// List all the directories present in DirectoryToList.
ResListDirectory = fListDirectory(DirectoryToList)
// For each directory found
FOR ALL RESListeRépertoire UnRépertoire CHAINS SEPARATED by CR
	// Add the directory into TABLE_DirTable
	TableAdd(TABLE_DirTable, ADirectory)
END
Reportes y Consultas
DirectoryToList = "C:\MyDocuments"

// List the directories present in DirectoryToList.
// The DirectoryAttribute procedure returns the number of read-only directories.
ResListDirectory = fListDirectory(DirectoryToList, "DirectoryAttribute")
Sintaxis

Listing the subdirectories of a directory Ocultar los detalles

<Result> = fListDirectory(<Path of initial directory> [, <Options>])
<Result>: Character string
Name of listed directories, separated by CR characters (Carriage Return).
<Path of initial directory>: Character string
Path of directory from which the subdirectories will be sought.
Windows This parameter can be in Ansi or Unicode format.
<Options>: Integer constant or combination of constants (optional)
Options that can be taken into account:
fdInterruptibleThe iteration can be interrupted by pressing ESC. The function will return the name of directories listed until the interruption.
frNotRecursiveThe iteration is non-recursive. Subdirectories are ignored.
frRecursive
(Default value)
The iteration is recursive. Subdirectories are automatically taken into account.
fUnicodePath<Result> will be a string in Unicode format.
Reportes y Consultas

Listing the subdirectories of a directory by calling a procedure for each directory Ocultar los detalles

<Result> = fListDirectory(<Path of initial directory> , <WLanguage procedure> [, <Pointer> [, <Options>]])
<Result>: Integer
Number of listed directories.
<Path of initial directory>: Character string
Path of directory from which the subdirectories will be sought.
Windows This parameter can be in Ansi or Unicode format.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called for each listed directory. This procedure is used to handle the current directory.
For more details on this procedure, see Parameters of the procedure used by fListDirectory.
<Pointer>: Optional integer
Pointer passed to <Procedure name>.
<Options>: Combination of Integer constants
Type of iteration performed for the directory files:
fdInterruptibleThe iteration can be interrupted by pressing ESC. The function will return the number of directories listed until the interruption.
frNotRecursiveThe iteration is non-recursive. Subdirectories are ignored.
frRecursive
(Default value)
The iteration is recursive. Subdirectories are automatically taken into account.
fUnicodePath<Result> will be a string in Unicode format.
Observaciones

Handling errors

Caution: fListDirectory returns no error code. To determine if this function has generated an error, use ErrorInfo with the errMessage constant.
Componente: wd300std.dll
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local