Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difficulty Passing Parms to VB Script Using RUN
Message
From
27/10/2002 03:54:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Difficulty Passing Parms to VB Script Using RUN
Miscellaneous
Thread ID:
00715849
Message ID:
00715849
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform