Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How much of your code do you test?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721300
Message ID:
00722287
Views:
25
>>>>Good idea, George. It might be even easier to implement this idea in VFP 8 using BINDEVENT() function. Instead of creating separate _Assign methods one can bind the necessary properties to one custom check method, that fires whenever any bound property is changed and will validate all the properties.
>>>
>>>Nick,
>>>How do you go about binding properties? I would think you would still need an _ASSIGN for each property and then bind each _ASSIGN method to one custom check method. I'm not sure, in my mind, if this buys you anything other than adding a level of complexity (i.e. another method call).
>>
>>Hi Larry,
>>
>>No, if the property is bound to the method/event, VFP 8 does the implicit _ASSIGN for the property. Here is the sample similar to what I showed at my VFP 8 presentation in Chicago:
>>
>
>Thanks, Nick. I hadn't seen that aspect of Bindevent().

The possibilities of BINDEVENT() are HUGE...
:)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform