Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning methods(events) at runtime in VFP5?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00204299
Message ID:
00204310
Views:
19
>Thanks for the quick response.
>I assume by your reply that the answer is no.
>I guess that I will have to do a work around like what you mentioned. The situation is that there are 10 different fields that I use for measurements, so I have 10 text boxes and corresponding labels. The problem is that there are 6 different types that use only certain measurement fields and they are not consistant about the order in which they appear. What I had done was to assign the controlsource, caption and visible properties based upon what the type is for each record. The problem is that for some of the measurements there needs to be code attached to the lostfocus event of the corresponding control.
>So... If I need to stick with this way of doing things, I need to create identical lostfocus events for the text boxes that test to see what the controlsource is for that text box and carry out the code if need be.
>Thanks,

You probably may just evaluate TYPE("This.Value") in lostfocus event, or reset Control.Tag property as indicator.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform