parameters
How to pass parameters to VFP EXE
By Sergey - Posted on January 1st, 2008
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
Difference between FUNCTION and PROCEDURE statements
By Sergey - Posted on January 1st, 2008
Syntactically there is no difference between FUNCTION and PROCEDURE statements in VFP. In other languages that have both statements, a function can return a value and a procedure cannot. In VFP the difference comes in the way a procedure/function is called. By default VFP passes parameters by value in call to the functions, by reference to the procedures ( DO ...) and only former allows for a return value.
Recent comments
4 hours 38 min ago
1 week 16 hours ago
4 weeks 8 hours ago
4 weeks 6 days ago
4 weeks 6 days ago
7 weeks 4 days ago
8 weeks 1 day ago
8 weeks 1 day ago
8 weeks 4 days ago
8 weeks 4 days ago