Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array of non-default properties
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00572626
Message ID:
00572632
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I'm trying to create a simple "convert" program, which would convert all base classes to my own classes. There are two approaches here:
>1) Create this program as direct operations on VCX file as a table (probably the simplest way)
>
>2) Copy each control in design-time and copy all non-default properties to them. I'm trying to proceed in this direction, but I could not find function, which would create an array of all non-default properties (I'm not trying to re-create methods, it would be too complicated)...
>
>How can I create an array of all non-default properties for the object?
>
>Thanks in advance.

You can go through the object properties and check them with PEMSTATUS() with nAttribute 0.

From Help:
"0 Changed (properties only). A logical true (.T.) is returned if the property value has changed from its original, default value; otherwise a logical false (.F.) is returned."

If it is changed add it to your array.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform