Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


remove a object


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-06-2007, 07:06 AM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default remove a object

on runtime I add a object to form1, but I also want to remove it again, to use the exacltly same obect on another (form2 - form#). Is there a DeleteObject-methode available on runtime or maybe a ChangeParent-methode?
Reply With Quote
  #2 (permalink)  
Old 12-06-2007, 07:11 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Both are available.
You can use YourObject.Dispose to delete the object.
Afterwards you will need to add it again with AddObject("YourObject",...)

You could also change a controls parent with FormLib.ChangeParent.
Reply With Quote
  #3 (permalink)  
Old 12-06-2007, 07:40 AM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default

thanks Erel, exactly I need. I overlooked it in the help
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove cursor from TextBox Bakhtiyor Questions & Help Needed 6 07-01-2008 09:42 PM
Object Reference not set to an instance of an object monster9999 Questions & Help Needed 9 01-15-2008 10:56 PM
Remove spaces from string forisco Questions & Help Needed 2 11-16-2007 11:07 AM
Remove Column derez Bug Reports 1 11-01-2007 06:16 PM
Tab Object anansath Basic4ppc Wishlist 1 06-08-2007 03:58 PM


All times are GMT. The time now is 06:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0