Environment versions
Network:
Windows 2003 Server
>Interestingly enough, setting the property storing an object reference to NULL (thisform.LastValue = NULL) still triggers delegate twice.
>
This is a bug.
>>I found a strange gotcha in VFP's native BindEvent. It seems that if you bind an event handler to a property (in order to have the hanlder fire when the property changes), it will fire twice if you switch from storing an object reference in the property to a character value. The first time it fires, the value changes to NULL and the second time it changes to the value that you assigned.
>>
>>I'm posting this as a reference.
>>-m@
>>
>>Example code:
>>
><snip>
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