Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add properties to a form in a formset?
Message
De
19/06/1998 22:39:40
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00109716
Message ID:
00110135
Vues:
47
Cool (but underhanded!)
//:^)

>Here's a cheating way to get new properties or methods on pre-existing forms/objects...
>
>use the formset ".scx" file
>browse for "form" = baseclass
>
>do a bit of looking in the properties memo field to find the form you want the new properties/methods to be added to.
>
>Go over a few more memo fields to "Reserved3". This will contain a list of added properties and methods. Just add your properties here methods are prefixed with an "*". Ex:
>
>glMyProperty1
>gcMyProperty2
>*MyMethod1
>*MyMethod2
>
>
>>To get properties added onto a form already in a formset, select the form you wish to add properties to in the properties window, and click File/Save as Class. Save it as a class and remove it from the formset. then go off, edit the class and add the propeties you want to the form. go back to your formset, and place your newly created form in the formset.
>>
>>--
>>Jerry
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform