Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CListObjEditForm problems
Message
 
To
27/10/2003 10:16:46
Steven Kleypas
Tarrant County College District
Texas, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00842953
Message ID:
00842979
Views:
15
>I'm using a standard cListObjEdit on a form which calls a cListObjEditForm for adding or editing records. Everything works fine unless anything (even single line DODEFAULT()) is entered in the Init of the cListObjEditForm. Specifically, the form fails in the OK button Click method with the message "Unknown Member oCallingFormListObj". The watch window shows this member to be .F. when it should be the calling forms name, one of the three parameters passed to the form. Again, everything works fine and the oCallingFormListObj member has the correct value if I set the forms Init back to DEFAULT. Any ideas?

Sure, that's basically what I'd expect to happen. The base class of the form has an LPARAMETERS statement in the Init() method. If you override it in your subclass, it's up to you to add this same LPARAMETERS statement and pass these parameters to the baseclass via DODEFAULT(parameter1, parameter2, parameter3). Specifically, you need code like this when you override Init() in a subclass:
LPARAMETERS tlAddMode, toCallingForm, toCallingFormListObj

IF !DODEFAULT(tlAddMode, toCallingForm, toCallingFormListObj)
   RETURN .F.
ENDIF

* At this point, you can add your own code. The base class code has already been run.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform