AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
  • Opening a selected image file
fImageSelect (Example)
Opening a selected image file
The following code is used to open the selected image file. The selected file is opened by the associated software in Windows.
// Declare the variables
FileNameAndPath is string
ResOpen is boolean
// Select file to open
FileNameAndPath = fImageSelect("C:\Directories", "File.gif", "Select an image",...
"JPEG (*.JPG)"+TAB+"*.jpg"+CR+"BMP (*.BMP)"+TAB+"*.gif")
// Open file
ResOpen = ShellExecute(FileNameAndPath)
// Display an error message if the opening was not performed
IF ResOpen = False 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: 22/08/2022

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