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.

Help on getting variable

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2008, 06:13 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
Unhappy Help on getting variable

I have an application that I am working on that requires the user to indicate a reason why they are deleting an item. The problem is that when you select the reason code from reason table and close the reason code screen the selected code is not being captured.

I have tried the doevents and also timers events, to no avail. In debug the program complete the sub before it ever gets to the reason screen.

Could someone please take a look at the attached code and indicate what I am doing wrong. Please note: the get_reason is also used in another part of the full program.


Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 11-11-2008, 07:23 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I'm not sure if that is the case here, but you shouldn't close the form from inside the SelectionChanged event. A timer (set to 10ms) should solve it:

Code:
Sub reasonlist_SelectionChanged (ColName, Row)    ' reason code selection
    reasonc = reasonlist.Cell ("R.Code", reasonlist.SelectedRow)    
    
Msgbox (reasonc)    
    tmrCloseForm.Enabled = 
True
End Sub

Sub tmrCloseForm_Tick
    tmrCloseForm = 
False
    realist.Close                                
End Sub
Reply With Quote
  #3 (permalink)  
Old 11-11-2008, 10:09 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
Smile Thanks

Thanks Erel, that just what the doctor ordered.
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
passing a module name as a variable Cableguy Questions (Windows Mobile) 4 10-24-2008 09:47 AM
Possibility of transfering variable value from one EXE to other EXE. mozaharul Questions (Windows Mobile) 3 10-16-2008 02:38 PM
Dim variable c% as Double colin9876 Basic4ppc Wishlist 8 05-28-2008 01:26 PM
Table Filter variable with apostrophe JamesC Questions (Windows Mobile) 5 04-04-2008 02:55 PM
LoadCSV from a variable nsidney Questions (Windows Mobile) 7 01-30-2008 01:29 AM


All times are GMT. The time now is 03:14 AM.


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