Following modification of the ErrorMsg procedure in UTILITY.PRG as described in an earlier posting I started getting the following error when opening a form with DOFORM:
<b>Error #: 12 Message: Variable 'PARENT' is not found. Line #: 6 Code: _SCREEN.MousePointer = MOUSE_HOURGLASS Method: doform Object: cmdAdminToolbarButton</b>
I traced it to a problem with the following line of code in UTILITY.PRG:
<b>#INCLUDE "INCLUDEAPPINCL.H"</b>
With the above code, "INCLUDEAPPINCL.H" cannot be found because in my new project the "compile before saving" option was not turned on, so it did not get compiled until it was accessed. I'm not even sure why it is including APPINCL.H since it should not need anything that is not in FRAMEWRK.H. Changing the line to:
<b>#INCLUDE "FRAMEINCL.H"</b>
seems to get around the problem since STARTCB sets the PATH to find the file. Once I realized what the problem was I just turned on the "compile before saving" option and removed the above modification, but I am uneasy about the original problem. Any comments? Jim Hansen Canyon Country Consulting ©2001 James H. Hansen |