Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command window
Message
From
04/02/2002 19:53:11
 
 
To
04/02/2002 19:47:45
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00614537
Message ID:
00615178
Views:
23
>>>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.

Sorry, sent no reply.

Thanks for help.

Mark
Previous
Reply
Map
View

Click here to load this message in the networking platform