Have a go with this.
Create a VFP project and add this prog as the main (and only) prog.
PARAMETERS p_1, p_2
IF TYPE("p_1") = "C" AND !EMPTY(p_1)
WAIT WINDOW "Param 1 is " + p_1
ELSE
WAIT WINDOW "Param 1 is not defined"
ENDIF
IF TYPE("p_2") = "C" AND !EMPTY(p_2)
WAIT WINDOW "Param 2 is " + p_2
ELSE
WAIT WINDOW "Param 2 is not defined"
ENDIF
RETURN
Build the project as an EXE. Run the exe and you will get 2 wait windows ;
WAIT WINDOW "Param 1 is not defined" &
WAIT WINDOW "Param 2 is not defined"
Then create a shortcut to the exe and in the target line of the properties have (your path)\parm.exe This That
Run the exe form the shortcut and you should get ;
WAIT WINDOW "Param 1 is This" &
WAIT WINDOW "Param 2 is That"
Hope this makes sense and is actually what you want.
Jon
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only