Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign method problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00381071
Message ID:
00381549
Views:
24
>Larry,
>
>>Technique 1
>>Property is public and there is a corresponding _Assign method.
>>
>>With this technique, you don't have to worry about much, the VFP engine will take of it. Whenever the property is assigned by anything (internal or external code) the validation in the _Assign will fire and do the appropriate thing.
>
>You do have to worry about this. If the value is assigned on the property sheet the Assign is not triggered. Which leads to the need for lame code in the Init method:
>
>this.MyProperty = this.MyProperty && to trigger assign
>
>df

David,
This is good for everyone to know. But it begs the question, why would you deliberately assign an invalid value in the property sheet and need the validation to occur?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform