>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