Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CListObjEdit object causing crash on exit
Message
From
21/07/2003 14:20:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
CListObjEdit object causing crash on exit
Miscellaneous
Thread ID:
00812098
Message ID:
00812098
Views:
44
Here is my problem.

I am getting this error message when I try to exit either the form I am working on, or the system from that form.

--------------------------------
system Error

The following system error has been encountered:

Error #: 107
Message: Operator/operand type mismatch.
Line: 41
Code: IF lnRetVal != FILE_OK
Method: cancelallnewandempty
Object: departmentsform1

Activate the debug window? ...

--------------------------------

Some background:

1) I have a business object, "departments," instantiated at the top of the form.
2) The form contains a pageframe, "pgfdepartments," based on cPageFrame.
3) Pgfdepartments contains a pageframe that I subclassed from VFP 8's base pageframe class. I am calling it "pgfStatistics." I did this because I was getting errors when I tried to insert another cPageFrame based object inside my pgfdepartments (cPageFrame based) pageframe.
4) PgfStatistics contains a business object called "employees." It also contains a cListObjEdit object. The employees data are in a many-to-one relationship with the departments data.
5) When I remove the cListObjEdit object from the page, the above error goes away. If I put it back on, it returns.

While I have not yet tested the full functionality of my cListObjEdit object, the one-to-many aspect of my form is working. When I click the "next" VCR button at the top of the form, the data at the top advances properly, and the data contained in the cListObjEdit grid refreshes accurately. The only problem with it is that it won't close properly.

Before I start listing properties, I thought I'd ask if anybody recognizes this problem. I greatly appreciate any help.

Thanks,
Joseph A. Koontz
Next
Reply
Map
View

Click here to load this message in the networking platform