Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How disappointed I am .
*- the following codes try to add property and method for a command button
aSelObj(aArray)
o=aArray(1) && store a reference of a command button in form designer
o.AddProperty('test_p','1')
o.WriteMethod('test_m',"? ok ",.t.) &&the .t. means create new method
Ok, it seems ok, the property inspect window shows what i had added,
the new property and the new method. Then open the scx file by a use,
what i add is there.
Great, i think i can write a short routine to add properties and
methods for objects containing in a form on design time. My code will
be more good...
But....
When i run the form, only the new method of command button can be access,
the property missed.
And after serveral time of open the form in designer, the two gone !
Mr. Ken Levy, do please add this feather in toledo.
AND, anybody can tell me how to hack in the fox to accomplish that in vfp7 ?
TIA.
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