Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy PEM to new class
Message
From
26/07/2009 11:26:23
 
 
To
26/07/2009 04:09:58
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01414536
Message ID:
01414560
Views:
77
Chaim --

I do not know of any utilities that will do this for you. You should be able to use the following technique:

(1) Do Modify Class on your first form

(2) ASelObj(aBase,1) will create an array with one element. That element will be a reference to your form.

(3) oSource = aBase(1)

Now repeat with new form class .... creating oDest

(4) AMembers(aList, oSource, 1) will create an array of the names of all the the properties, methods and events in oSource. Column 1 is the name, column 2 is the type ('Property', 'Method', or 'Event')

(5) Loop through the rows of the array. Use PEMStatus(oSource, aList(lnRowNumber,1), 0) to find out if it has a non-default value.

(6) If non-default and a property, use oDest.AddProperty; if a method or event, use oDest.WriteMethod.

Hope this helps

Jim


>Hi, help please
>
>I want to change form class wich base on vfp base class to 'ThemeControl' (VFPX).
>I have long list of methods and property.
>How can I copy it to 'Themecontrol' new form class?
>
>Thank
Jim Nelson
Newbury Park, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform