Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying a Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00502814
Message ID:
00511068
Vues:
17
Hi Dodi,

1. Open two instances of the class browser.
2. In one instance, open the target library.
3. In the other instance, open the source library.
4. In the source library, select the class you wish to copy FROM.
5. HOLD DOWN THE 'CTRL' KEY, and drag from the icon *TO THE LEFT OF THE COMBO BOX ON THE TOP* (the tool tip on that control says "Class Type").
6. Drop the dragged class into the target library.

You have now copied the class to another library with no effect on the original. The class still references the same hierarchy, however; you will probably need to Redefine where the class inherits from to get your desired behavior.

HTH.

>>Hi Ed
>>
>>>I have a form class stored in a vcx that I would like to make a copy of and then modify. What is the best way to do this. The class browser doesn't seem to have a copy function.
>>
>>You can copy a class in a class library by dragging your class from one class library to another.
>>
>>It will copy the class and not move it.
>>
>>Michael Henstock
>>AWS
>
>Yet it doesn't copy to allow modification without affecting the original class... how can we copy the class itself?
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform