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:
00381545
Views:
16
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform