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.

Addevent Table

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-29-2007, 08:36 PM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default Addevent Table

Hi Guys,

Could someone give me an example of the Addevent in combination
with the table?,

In runtime i created some tables, but i need the selection_onchanged event to, now i need to create x subs like table1_selectiononchanged(....
I supose this can be solved at the Addevent

Cheers
__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
Reply With Quote
  #2 (permalink)  
Old 09-29-2007, 08:44 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Assuming that what you ment was "selection changed" and not "selection on changed," It should be something like:

AddEvent ("Table1", selectionchanged, "Table1_selectionchanged")
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 09-29-2007, 08:47 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Code:
Sub App_Start
    Form1.Show
    AddTable(
"form1","t2",20,30,100,100)
    t2.AddCol(cstring,
"c1",50)
    t2.addrow(
23)
    t2.addrow(
24)
    AddEvent(
"t2",SelectionChanged,"TablesEvent")
    
End Sub


Sub TablesEvent (ColName, Row)
    form1.Text = t2.Cell(colname,row)
End Sub
Note that it is not required to always use AddEvent.
You could just write:
Code:
Sub t2_SelectionChanged (ColName,Row)
There is a new tutorial that covers these issues: http://www.basic4ppc.com/forum/tutorials/907-runtime-controls-manipulation.html
Reply With Quote
  #4 (permalink)  
Old 09-30-2007, 07:33 AM
Knows the basics
 
Join Date: May 2007
Posts: 63
Default

May i see again thank you !

__________________
Mojopac installed.
HTC-Touch , T-mobile AMEO.
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
AddEvent & ImageButton in IDE agraham Bug Reports 1 09-10-2008 09:31 PM
AddEvent with ComboBox erik58 Questions (Windows Mobile) 2 05-24-2008 03:38 PM
AddEvent but no RemoveEvent?? LineCutter Questions (Windows Mobile) 2 04-19-2008 06:09 PM
Problem with AddEvent and ImageList Haschi0 Questions (Windows Mobile) 7 03-01-2008 12:06 PM
Problem using AddEvent EdQas Questions (Windows Mobile) 7 09-09-2007 10:51 AM


All times are GMT. The time now is 10:11 PM.


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