Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a simple way to save non-default properties?
Message
De
11/07/2009 13:04:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01411416
Message ID:
01411617
Vues:
82
This message has been marked as a message which has helped to the initial question of the thread.
>>>Hi everybody,
>>>
>>>Is there a simple way to get all properties that are changed on the form for some control into a convenient format? Say, I want to post a question and list all changed properties. I know I can hack the form and grab this info from there, but is there a simpler method?
>>>
>>>Thanks a lot in advance.
>>
>>You could do something like (didn't test)
>>
>>
>>ln_props = AMEMBERS(la_props, lo_object, 0)
>>FOR EACH lc_prop IN la_props
>>   IF PEMSTATUS(lo_object, lc_prop, 0)
>>      *-- Property changed
>>      ? lc_prop + " Has Changed"
>>   ENDIF
>>ENDFOR
>>
>>
>
>Interesting, thanks.

Actually, the 4th parameter of aMembers() lets you check the changed only - I usually put "UC" for it (added and/or changed).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform