Koen Piller
Programmer
Sequence of instructions / Call stack
I know we have LISA in VFP.
I have myForm which is subclassed from myBaseForm
Now I have in myForm.Load
And in myBaseform.Load
Also in myForm an object on MyPageFrame.Page2.Grid1
Here you have code in Init:
The Grid is based on class myGrid, here you have code in the init:
When I follow in the debugger the callstack, I notice that the sequence is:
1) myForm.Load
2) myForm.MyPageFrame2.Grid1.init (not from Grid1 but from myGrid.init - inside to outside)
which is unwanted as the cursor (myBaseform.load) ia not yet created and thus the grid errors.
How can I rearrange so that the callstack will be:
myForm.Load
myBaseForm.Load
a.s.o.
or ventualy inside out
Koen
I know we have LISA in VFP.
I have myForm which is subclassed from myBaseForm
Now I have in myForm.Load
Code:
If !Used('naw')
Use naw In 0
Endif
Select naw
Dodefault
Locate
And in myBaseform.Load
Code:
Create Cursor curDistance (distance c(10,0))
Here you have code in Init:
Code:
Set Classlib To 'ZORGENZEK.VCX' Additive
This.RecordSource = This.RecordSource
DoDefault()
Code:
THIS.setgrid()
RETURN
1) myForm.Load
2) myForm.MyPageFrame2.Grid1.init (not from Grid1 but from myGrid.init - inside to outside)
which is unwanted as the cursor (myBaseform.load) ia not yet created and thus the grid errors.
How can I rearrange so that the callstack will be:
myForm.Load
myBaseForm.Load
a.s.o.
or ventualy inside out
Koen