Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject... doesn't !!!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00092409
Message ID:
00092771
Views:
32
>It's pretty basic.. oops, I mean _simple_ :-)
>
>
>* add / update menu option containers and scrollbar
>IF TYPE("THIS.cntMenu") = "O"
>  THIS.REMOVEOBJECT('cntMenu','Container')
>ENDIF
>THIS.ADDOBJECT('cntMenu','Container')   &&<<<<<<< object with that name already exist
>THIS.cntMenu.VISIBLE     = .T.
>
Larry (and Cetin),
Does the RemoveObject() code leave the variable with a value of .NULL.? Try checking for this, and releasing the variable if necessary.

HTH
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform