Runtime control manipulation

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.
 

Attachments

RandomCoder

Well-Known Member
Licensed User
Works for me :sign0060:

Regards,
RandomCoder
 
Top