Addevent Table

Discussion in 'Questions (Windows Mobile)' started by tvrman, Sep 29, 2007.

  1. tvrman

    tvrman Member Licensed User

    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 :cool:

  2. Cableguy

    Cableguy Expert Licensed User

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

    AddEvent ("Table1", selectionchanged, "Table1_selectionchanged")
  3. Erel

    Erel Administrator Staff Member Licensed User

    Sub App_Start
    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:
    Sub t2_SelectionChanged (ColName,Row)
    There is a new tutorial that covers these issues:
  4. tvrman

    tvrman Member Licensed User

    May i see again thank you !

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice