Runtime control manipulation

Discussion in 'Code Samples & Tips' started by Erel, May 10, 2007.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Basic4ppc includes some keywords that allow you to easily work with a dynamic number of controls.
    The main keywords are:
    Control - Calls a control using a string.
    Example: Control ("button" & i).Color = cRed

    AddEvent - Wires a control event with a specific sub. One sub can handle many controls events.

    Sender - The control that raised the event.

    This is a short example (50 lines) of using these keywords to create a Tic-Tac-Toe game.
     

    Attached Files:

  2. Cableguy

    Cableguy Expert Licensed User

    I can run it, gives me an excepcion error!!Am i the only one?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    What exception and when does it happen?
     
  4. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Works for me :sign0060:

    Regards,
    RandomCoder
     
  5. Cableguy

    Cableguy Expert Licensed User

    I click on the link and then o open an when i try to run it...
     

    Attached Files:

  6. Erel

    Erel Administrator Staff Member Licensed User

  7. Cableguy

    Cableguy Expert Licensed User

    It worked thanks
     
Loading...