PRB: Can't Activate or Access an ObjectID: Q132227 The information in this article applies to:
SYMPTOMSAfter you define a class in a program (.PRG file) and run it, nothing happens. For example, the following code, when run in a .PRG file, executes and return to the Command window:
CAUSEA class is simply a template or definition from which an object will be created. Defining a class does not create an instance of the class.
RESOLUTIONBuilding on the example above, the code example creates a template from which a new object can be created. To instantiate the defined class, you must add this additional code:
To cancel this code, click the Command box for this form, and click Close.
Then on the Visual FoxPro menu, on the Program menu, click Cancel.
STATUSThis behavior is by design.
MORE INFORMATIONFor additional information on objects and classes, please see these Help topics:
|
Last Reviewed: August 16, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |