Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error running MAIN in my project
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00096154
Message ID:
00096304
Views:
15
Paul,

>I'm having some problems getting my CBMM app working. I CD into my app directory, run STARTCB, then DO MAIN. I'm getting an error:
>
>Error #12
>Message: Variable 'PARENT' is not found.
>Line:23
>Code: _screen.MousePointer - MOUSE_DEFAULT
>----

MOUSE_DEFAULT is a constant that is defined in FoxPro.h (usually located in your VFP root directory).

Unfortunately, VFP does not generate an error when it compiles a class and cannot find the include file. For example, when you change something in a class then save changes, VFP compiles the class and generates the pcode. If FoxPro.h can't be found it does NOT generate an error.

To fix your problem you first of all need to find which class / prg contains the problem. You can determine this by going to the VFP debugger when you encounter the error. Once you're in the Trace Window, click the "Out" button until you completely back out of the Error Handler (keep clicking until you don't see the word "Error" in the method name. At this point you can see which class/method is causing the problem. It may very well be in your CApplication class.

Once you determine the offending class, make any change to the class so VFP recognizes a change has been made and recompiles the class for you.

And by the way...remember to type "DO STARTCB" in the VFP Window to set your path before editing any framework or project files.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform