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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement