AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
fGraphicFilter (Example)
WINDEVReportes y ConsultasJavaCódigo de Usuario (UMC) Opening a selected file
The following code is used to open a file. This file is an image file or a text file. This file is selected by fSelect.
// Declare the variables
FileNameAndPath is string
ListImageFiles is string
FileID is int
 
// Retrieve the list of image formats supported by WINDEV
ListImageFiles = fGraphicFilter()
 
// Select file to open
FileNameAndPath = fSelect("", "File.txt", "Select a file", ...
ListImageFiles + CR + "Text file (*.TXT)" + TAB + "*.txt", "TXT", ...
fselOpen + fselExist)
 
// Open file
FileID = fOpen(FileNameAndPath, foReadWrite)
// Display an error message if the opening was not performed
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
// Processes in the opened file
...
// End of processes
END
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/08/2022

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