Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fun with _Access and _Assign
Message
From
11/01/2008 07:46:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01281068
Message ID:
01281103
Views:
13
Sergey,

would you advice to read help or documentation? This against the rules. ::))

Anyway, this is poor design. Well, I've coded around, so I don't care.

Agnes
>Agnes,
>
>There's no need to test. It's documented in VFP9 help:
>"The Assign method will fire for certain native properties when their value is queried and not changed. These include dimensional properties such as Top, Left, Height, Width as well as a few others like Visible. This is due to how Visual FoxPro handles these properties internally".
>
>>
>>something nice for you to track:
>>
>>If you use _ASSIGN and _ACCESS Methods for the WIDTH and Height properties, the methods have side effects.
>>The use of the Width_Access calls the Width_Assign by its own. It also calls Visible_Access twice for no visible reason - but only if the object is visible!
>>
>>I've checked this with VFP7,8,9 SP2
>>
>>Use the code below to trace.
><snip>>
>>Update:
>>Don't need help, can you just test it?
>>2nd Update:
>>try with Top and Left to
>>
>>Replace the = on line 4 with ? and see how the result of line 5 changes. (VFP 7 only)
>>Check with and without debugger.
>>Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform