Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters form one program to another.
Message
De
14/04/2005 11:04:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01002245
Message ID:
01004683
Vues:
15
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform