DOCUMENT:Q128727 12-FEB-2000 [foxpro] TITLE :How to Copy an Existing Class Without a Subclass PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, version 3.0 ------------------------------------------------------------------------------- SUMMARY ======= This article shows you how, by using the ADD CLASS command, you can make a copy of an existing class without subclassing from the parent class. MORE INFORMATION ================ The syntax for the ADD CLASS command is: ADD CLASS OF To is the name of the class definition added to the .VCX visual class library . Specifies a .VCX visual class library from which the class definition is copied. Specifies the .VCX visual class library to which the class definition is added. If you omit the optional clause, Visual FoxPro searches for the class definition in any .VCX visual class libraries opened with SET CLASSLIB. Visual FoxPro generates an error if the class definition cannot be located or a class definition with the name you specify already exists in ClassLibrary2. NOTE: The .VCX visual class library that you are adding to must exist. ADD CLASS will not create it if is does not exist. Additional query words: VFoxWin 3.00 ====================================================================== Keywords : Technology : kbVFPsearch kbAudDeveloper kbVFP300 Version : WINDOWS:3.0 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.