Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Erasing Add Object

Status
Not open for further replies.

TiCi

Programmer
Dec 23, 2003
11
ID
Hello,

I've created a commandbutton in screen with "addobject" method, and now I want to erased the commandbutton. I've used "clear" command but it appeared it can only erase it's visual object, but not the memory used for command button it self. So, I can only used "clear all" command, but unfortunately it also erase all variable in memory. Can I used another command/method/functions to erase only the commandbutton in memory and visual without having another variable to be erased.
I'm Sorry if my English is not very good. but I hope you guys can understand what I mean.

thanks and regard
 
You can replace "Command1" with your control name.

Brian


thisform.removeobject("Command1")
 
Hi TiCi,

I'm not really sure what your problem is, but have you try RemoveObject() method ?

-- AirCon --
 
Brian,

Grrr...I'm not a fast typewrite :-D


-- AirCon --
 
nuhun pisan atuh (the sundanesse langguange for thanks =))
thank you, that's exactly what i mean
sorry for your trouble though =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top