main logo
Subject: Add a grid to a pageframe; get an error
Author: Mike Devlin
Posted: 2000/11/20 14:24:10
 
View Entire Thread
New Search


Hello all, just me again.
I hate to be such a rookie bother, but I have come across something else I do not understand.
I have the parent-child relationship working on the form. I now want to put a pageframe on the form, which I did with no problems or ill side affects. I then editted the pageframe and placed the child bizobj grid onto the frame, not the bizobj, just the grid. When I ran the form in debug mode from the menu system, I generated a program error. It read:
Alias 'TCCLASSNAME' is not found.
I pointed the pointer at the variable in the trace window, and the name of the form class appears in the tooltip, just as I would expect. I ran it over again, making sure I had done 'do startcb', but the error occured again. So....
I put a breakpoint in the click event on the menu pad. I watched DoForm run. It went to the Do CASE PCOUNT() 1, which it should. It performed the form load, created the session environment ( no registry labels ), init(), saved the olds settings, and set the new settings. No problems yet.
It creates the crefbizobj class, which is ireferencecollection, whose parent is the same only in the c-layer, where the code is found. Please bear with me if I am going step by step, but I learn better this way. =)
When it gets to createhook, a weird thing happens. The line
THIS.oHook = CREATEOBJ ( THIS.cCollectionHookClassName )
causes nothing to happens. cCollectionHookName = iReferenceCollectionHook, but it is not instantiated. The same happens when the registry class is being instantiated.
The flow then proceeds to destroy() the iSessionEnvironment, and then runs into the UnHook() method, which has nothing to unhook, then the error message occurs and drops me back in the do case line.

I understand that hooks are multi inheritance, which I not only comprehend, but think is very cool.

My problem, is that I do not understand what putting the grid on the pageframe is doing to cause this error.

Any ideas?
Devman
mdevlin .at. ajdebruin .D.O.T com

 
©2000 Mike Devlin
<-- Prior Message New Search Next Message -->