Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command window
Message
 
 
To
03/02/2002 10:04:10
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00614537
Message ID:
00615173
Views:
24
>Can somebody tell me why these two commands dont do anything if I run them both at the same time:
>o = NEWOBJECT('frmschentry', 'opmonitor')
>o.Visible = .t.
>
>but if I run them one by one then a form is visible.
>
>Thanks, Mark

Hi Mark,

When you highlite multiple lines in the command window, Right click and select 'Execute Selection' foxpro does not execute highlited commands in the command window one by one. It copies selected lines into the temporary .PRG, compiles and executes it. You would get the same result if you copy selected lines in the program and run it.
Now back to your example. As soon as temorary .PRG is finished variable 'o' goes out of scope and form gets released. If you declare variable 'O' in the command window by running your code line by line or any other way, than variable 'o' wouldn't be released at the end of temporary .PRG and form will still be visible.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform