Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning text box content to variable...
Message
From
10/11/2004 12:15:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00959984
Message ID:
00960080
Views:
9
>Okay. I got the app to launch but the variable is picked up in its literal form. In this case, if I declare lcComputerName (and the debugger IS acknowledging that the user-supplied value for the variable is publicly available) then...
>
>
RUN /N application.exe lcComputerName
>
>...is running exactly as that (error from the launched app is that there is no machine named lcComputerName).
>
>How should I package this so that lcComputerName is properly interpreted to be whatever input the user supplies?
>
>Thanks again...
>
>Alan

With macro substitution - add an ampersand.
RUN /N application.exe &lcComputerName
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