PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 the 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