Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject does it at will
Message
From
30/01/2004 01:33:57
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00871699
Message ID:
00872198
Views:
19
>Kamil,
>
>Is the container a class where these 3 internal objects are defined?

- Yes. And i assume the following is true only for objects based on a predefined class.

>If so you'll see this "pseudo" removal. You can't actually remove the object from the "definition" of the class in memory and that is where VFP is getting the information it is displaying in your vartype() output.
>
>But the object is really removed from the runtime instance. As is illustrated by trying:
>
>? type( "this.command3.caption" )

- indeed

>If you want to have vartype() return different results after RemoveObject() you can use runtime composition using AddObject() to add the controls.

- So if add an object at runtime i can fully remove it, i see.

Thank you.
Kamil
A moment of silence is our cosmic reset button.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform