Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if property of an object is changed ?
Message
De
18/07/1999 14:07:12
 
 
À
18/07/1999 13:55:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00242881
Message ID:
00242883
Vues:
27
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform