Passing command-line parameters from Windows to VFP created EXE is different from passing parameters to VFP programs or functions in VFP application:
- All parameters are passed to EXE as strings
- Parameters should not be enclosed in single quotes because quotes will be treated as part of parameter
- Parameters with spaces can be enclosed in double quotes
- Parameters are separated by spaces not commas
The Windows Shell
provides a powerful set of automation objects that enable you to access the file system, launch programs, and change system settings.The Shell Windows Method
creates and returns a ShellWindows object that represents a collection of all of the open windows that belong to the Shell, including Internet Explorer.
The code below demonstrates the use of the DRIVETYPE() function.
The GridHitTest method can be used to to determine where user clicked on the grid and update checkbox accordingly. Note that checkbox status can be changed by mouse only because there's no current cell when AllowCellSelection=.F.