Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add properties to a form in a formset?
Message
From
19/06/1998 22:39:40
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00109716
Message ID:
00110135
Views:
48
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
Previous
Reply
Map
View

Click here to load this message in the networking platform