Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

unassign event

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-15-2007, 11:17 AM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default unassign event

On runtime I add events to an object (e.g. onFocus to a textbox), but on closing the form the event stays active so I get errors when swithing to an other form. I cant find a way to remove te event from the object. Is it possible any way?
Reply With Quote
  #2 (permalink)  
Old 12-15-2007, 12:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can't remove the event.
You can do something like:
Code:
Sub Globals
 handleFocus = 
true 'you can use an array or an arraylist instead.
End Sub

Sub TextBox_GotFocus
 
If Not(handleFocus) then return
 ...
End Sub
Reply With Quote
  #3 (permalink)  
Old 12-15-2007, 02:02 PM
Junior Member
 
Join Date: Aug 2007
Location: The netherland, Geldrop
Posts: 23
Default

That's a possible solution. thanks Erel
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Event keyboard question micro Questions (Windows Mobile) 8 10-30-2008 04:39 PM
Table - MouseDown event and more Erel Code Samples & Tips 1 04-07-2008 05:55 PM
TreeView Click Event RandomCoder Basic4ppc Wishlist 5 02-28-2008 03:23 PM
TreeView event magi6162 Questions (Windows Mobile) 3 08-29-2007 10:29 AM
Calendar event Rioven Questions (Windows Mobile) 7 08-28-2007 07:00 AM


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0