Information générale
Titre:
Adding custom properties at run time.
I'm a newbie...
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
I would be greatful for any help.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement