Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters form one program to another.
Message
From
07/04/2005 09:12:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01002245
Message ID:
01002247
Views:
25
>I have a prg file when ran invokes another application. So when a user inn my current application selects the wording 'Fabric Submission' another application is ran. I also have a parameter passed called artikey. Therefore how can I pass the parameter Artikey to my new program.
>
>My syntax for starting my other application is:
>
>! /n U:\questpdm\fabsum.exe
>
>I would now like to pass the parameter Artikey so I can use this with my new application. Can anybody help me please?

You would pass the parameter after the name of the executable:
! /n U:\questpdm\fabsum.exe "Parameter 1"

* or

! /n U:\questpdm\fabsum.exe 123
Although the second example shows a number, the OS will pass it as text, so you have to receive it as such.

In the main program of fabsum.exe, you have to have a PARAMETERS or LPARAMETERS statement, to receive the parameters.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform