Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject - Click Event
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00990913
Message ID:
00991376
Views:
17
>Sergey,
>
>Thanks for the reply. Shortly after I posted, I remembered how I had done something similar in the past.
>
>I created a new Class - MyChkBox based on CheckBox. Before I saved it, I created a ClickEvent: Thisform.CheckBoxClicked(This.name)
>
>In the form where I create the (from 1 to 8) Checkboxes programatically I give them names like CBX1 - CBX8. In the form I also have a CheckBoxClicked method that uses the 4th character of the passed parameter to identify the box that was checked.
>
>By creating the class, I end up with less coding than your solution, but I greatly appreciate your response because for a while there I was butting up against a stone wall.
>


Hi Rudy,

Whatever works for you but I don't know how you came to the conclusion that my solution requires more coding. The only extra line of code is a call to BINDEVENT(). It seems to me less coding that creating additonal class and easier to maintain.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform