Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject does it at will
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00871699
Message ID:
00871707
Views:
28
Hi Kamil,

Try it:
&&(container)
This.RemoveObject('Label2')
This.RemoveObject('Command3')
This.RemoveObject('Command4')

?TYPE("This.Label2"),PEMSTATUS(This,"Label2",5)
?TYPE("This.Command3"),PEMSTATUS(This,"Command3",5)
?TYPE("This.Command4"),PEMSTATUS(This,"Command4",5)
MartinJ

>Hi Martin.
>Tryed Type('controlname')
>Same result :(
>.RemoveObject('Label2') is the first RemoveObject in the string of RemoveObject commands, looks like the first time it works properly and all the next RemoveObjects do not complete fully.
>Still thinking...
>Best wishes.
>Kamil
>
>
>>Hi Kamil,
>>
>> You must use TYPE().
>>
>> MartinJ
>>
>>>Hi.
>>>VFP7.0, sp1.
>>>The following code:
>>>
>>>With This &&(container)
>>>.RemoveObject('Label2')
>>>.RemoveObject('Command3')
>>>.RemoveObject('Command4')
>>>* doing something irrelevent to Command3/4
>>>?VarType(.Command3)+VarType(.Command4)+VarType(.Label2) - displays OOU
>>>EndWith
>>>
>>>Changing to VarType(This.Command3) doesn't help
>>>if i put VarType(.Command4.Tag)
>>>"Unknown element" error message.
>>>
>>>...scratching the back of the head
>>>yours truely
>>>Kamil
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform