>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only