Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding custom properties at run time.
Message
 
 
To
10/08/1998 09:37:35
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00125221
Message ID:
00125233
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform