John:
>>
I personally haven't used Access & Assign methods or apartment model threading (haven't done anything involving VFP COM with MTS) but I'm sure these features would be touted as the most useful by experts in the community
>>
>
I love Assign! It can be abused in an n-tier environment where a "Set" would be more appropriate, but nothing beats it in components managing themselves. For example, you may have a variety of Form controls enable or disable depending on a certain logical flag. What better place to put the enabling/disabling code than in an Assign for the Form property that tests the value and takes appropriate action?
>
I also use Assign to redirect messages from a container to one of its control. For example, setting the Date property of our calendar class resolves which controls must receive the Highlight and RemoveHishlight messages.
Yesterday's post about Business Entites and Managers are another example where the manager redirects most messages originating to an entity (but I use a Set in this case).
Daniel
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only