Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading an VFP EXE with values
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00188534
Message ID:
00188614
Views:
20
I think that needs clarification. (Sorry to suggest that, Mark!) By "the entire value will be passed" Mark means that VFP will get a string which contains "/U" if that's what you put there. Anything you put on the command line of your EXE will be recieved into your main prg's parameters as strings.

Note that certain parameters starting with a dash (-) will be interpreted as VFP command line switches, e.g. -c< configfile > tells VFP what config file to use, -t tells VFP not to show it's "splash screen" on startup, etc.

Cheers,
Rich.

>Sure,
>Just have a PARAMETER statement in the main PRG of the project, or if it's a main form, in the INIT event of the form. The entire value will be passed to the code as string(s).
>
>HTH!
>Mark
>
>>Is there a way to pass values to a FoxPro Application?
>>
>>Say like command line values to the EXE.
>>
>>c:\myprog.exe /U && Would pass the value '/U' to the
>> && App.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform