Passing a control as a parameter

Discussion in 'Questions (Windows Mobile)' started by AHeroMenKill, Jun 16, 2008.

  1. AHeroMenKill

    AHeroMenKill New Member Licensed User

    Hi all,

    Apologies if this has been answered elsewhere but I can't find it.

    I need to pass a control name (a table in this case) into a Sub. The application has three tables and I want one Sub to deal with the updates to all of them instead of putting 3 copies of the same code behind each table...

    Anyone know how I can do this? Is it possible?

    Thanks in advance for any assistance...

    Mike
    :sign0085:
     
  2. Mr_Gee

    Mr_Gee Active Member Licensed User

    Can't you use the Control(Sender) controle?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

  4. AHeroMenKill

    AHeroMenKill New Member Licensed User

    Cheers!

    Thanks guys.

    That did the trick... was having some difficulty getting my head round the differences between this and VB....

    Cheers!

    Mike
     
Loading...
  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