Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How disappointed I am .
Message
De
05/02/2002 03:22:24
Max Chen
Yx Software
Shunde, Chine
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How disappointed I am .
Divers
Thread ID:
00615259
Message ID:
00615259
Vues:
59
*- 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
Fil
Voir

Click here to load this message in the networking platform