Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing multiple lines of code in the command window
Message
From
04/11/2004 08:22:24
 
 
To
04/11/2004 08:15:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00958033
Message ID:
00958038
Views:
17
When you 'execute' lines from the command window, VFP in reality makes a temporary .prg which then is compiled, run and deleted. So your variables will be local the temporary program, and therefor not available anymore afterwards.

>I want to be able to highlite multiple lines of code in the command window and reexecute them at one time, in sequence. I changed jobs recently and I thought I was able to do this in VFP-7 but it does not work on my new VFP-8 setup. I can't find any refs to it in the documentation. When I highlite the following commands that were previously executed one at a time and press the [Enter] key it does not seem to do anything. The memvars do not exist if I try to show them:
>
>I copied these lines from earlier in the command window and pasted them at the bottom of the command window. While they are still highlited I pressed the [Enter] key to execute them.
>
> m.lcStatute1 = ''
> m.lcStatute2 = ''
> m.lcStatute3 = ''
> m.lcStatute4 = ''
> m.lnSub = 1
>
>Then I entered the following command:
>
> ?m.lnSub
>
>and to my surprise I get an error that says the memvar does not exist! Is there some setup option that will allow me to do this or was I just dreaming???
>
>Jim White
Previous
Reply
Map
View

Click here to load this message in the networking platform