Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters from a exe or dll file
Message
From
15/10/2004 02:55:08
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
13/10/2004 10:19:53
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00951054
Message ID:
00951642
Views:
19
This message has been marked as the solution to the initial question of the thread.
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
Map
View

Click here to load this message in the networking platform