Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command window
Message
From
04/02/2002 19:50:50
 
 
To
04/02/2002 19:47:57
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00614537
Message ID:
00615177
Views:
19
>Mark,
>
>It will work if the object ('o' in this case) is already a public variable. Test it by doing the following steps in command window:
>
>
>o = NEWOBJECT('frmschentry', 'opmonitor')
>
>
>At this point, 'o' is a public variable. Now, type in the second line, highlight both lines, and hit enter.
>
>
>o = NEWOBJECT('frmschentry', 'opmonitor')
>o.Visible = .t.
>
>
>It should have worked. Now, get rid of the public variable:
>
>
>release o
>
>
>Highlight the 2 program lines, and hit enter, this time it should not work.
>
>HTH,
>
>steve
>
>>>Mark,
>>>
>>>Because when you run multilines from the Command window, VFP takes the lines and makes a temp PRG file and then runs that.
>>
>>Then why sometimes it works from Command line?
>>
>>Thanks, Mark

Yes, this is absolutely right. thanks

Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform