Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if property of an object is changed ?
Message
From
18/07/1999 14:07:12
 
 
To
18/07/1999 13:55:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00242881
Message ID:
00242883
Views:
24
>>Hi All,
>>
>>How to determine if a property of an object is changed automatically, such as Listbox.Listcount, form.activeobject, I've tried to use assign method, but it didn't work.
>>
>
>I don't think you can do this. For user assigned propreties, you would use an Assign method, but the propreties you mentioned are read-only because they are system assigned. (ActiveControl is not really a property, it is an object reference).

I'd tend to agree - the only thing I can think of would be some sort of a voyeur pattern object that polled the content of the object's native property(ies) being watched and check the current value against the last recorded value. Then trigger a method based on the observed change. It could be done with a timer, but it'd eat cycles, and having at least one per form or container would get expensive quickly.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform