Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a simple way to save non-default properties?
Message
De
10/07/2009 12:21:46
 
 
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:
01411433
Vues:
74
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
>>
>>
>
>When I tried
>
>lc_prop + ' = ' + evaluate(lc_Prop)
>
>I got lots of errors - had to kill VFP. Is there any other way to get the value of the property?
>
>Ok, good I asked - I figured it.

So you don't need an answer? PEMSTATUS will only tell you if the property has changed from the default. Just like on the VFP property window when right click and select "non-default properties only".

Also might want to look at GETPEM instead of using the EVALUATE command.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform