Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Assign code firing on an access
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Miscellaneous
Thread ID:
01479075
Message ID:
01479116
Views:
128
Thanks, Sergey. Guess I should have looked, but this seemed quite counterintuitive, so I figured it was a bug or maybe something I was doing wrong, but not seeing. Also, I suppose during past trace sessions I've either never encountered the particular situation or didn't notice it (because I was clicking Skip Over, perhaps). Thanks, again.

>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.
>
>
>>Today, while tracing some code, I noticed that when I was referring to a particular property (accessing it, not assigning it), its _assign code was firing. Odd. Anyone seen this before?
>>
>>Here's the code:
>>
>>
>>with this
>>	.Top   = .Parent.Height - .Height
>>endwith
>>
>>
>>I'm setting the Top property for the object and it's based partly on the height of the parent. As you can see, all I'm doing is accessing the parent's height property, yet on this line of code the parent's Height_Assign method fires. Any thoughts on this would be appreciated.
>>
>>Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Reply
Map
View

Click here to load this message in the networking platform