ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / External file functions
  • 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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help