Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difficulty Passing Parms to VB Script Using RUN
Message
De
27/10/2002 03:54:02
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Difficulty Passing Parms to VB Script Using RUN
Divers
Thread ID:
00715849
Message ID:
00715849
Vues:
44
Hi folks,

I need to change a couple of folder names programatically which I'm doing with small VB script, and I need to pass a couple of arguments for the folders that will be renamed. My problem is that the arguments which are VFP expressions are passed to the script as the literal expressions rather than being evaluated. The following line:
"RUN /N wscript my_script.vbs ThisForm.p_cFormProperty1 SomeOtherExression2" won't work since neither of the 2 arguments are evaluated. I tried EVALUATE(), but that didn't help.

I can brute force" a solution by writing a VERY LONG DO CASE statement, but there must be a smarter way...

Any ideas?

Thanks,

Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform