Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters form one program to another.
Message
From
14/04/2005 11:04:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01002245
Message ID:
01004683
Views:
24
>Hilmar
>
>I would to try and pass another parameter but I cannot get it to work:
>
>LPARAMETERS cArtikey, cSeamslippa
>! /n U:\questpdm\fabsum.exe cArtikey cSeamslippa
>
>
>Any ideas?
>
>Many thanks

The general principle is to use macro substitution to replace a variable with its contents, either for an entire command, or for parts of it.

Entire command:
lcCommand = "! /n U:\questpdm\fabsum.exe " + cArtikey + " " + cSeamslippa
&lcCommand
Parts of the command:
! /n U:\questpdm\fabsum.exe &cArtikey &cSeamslippa
Note that I used the "&" twice, once for each variable.
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
Reply
Map
View

Click here to load this message in the networking platform