Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding custom properties at run time.
Message
 
 
À
10/08/1998 09:37:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00125221
Message ID:
00125233
Vues:
17
Patrick,

We can't natively do this like Visual dBASE. Look in the libs here for addprop.fll it's also available on the MS website. VFP6 will include the ability to create properties on the fly.

>Is it possible to add custom properties programmatically at run time, as they will be extracted from a table that is maintainable.
>
>i.e.
>DEFINE CLASS myclass of CUSTOM
> CustomProperty1 = .F.
> CustomProperty2 = .F.
>ENDDEFINE
>
>I have tried setting the properties as strings and using macro substitution but this seems to have no effect.
>
>i.e.
>m.lcString = 'CustomProperty1 = .F.'
>DEFINE CLASS myclass of CUSTOM
> &lcString
>ENDDEFINE
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform