This "Form parameter problem" is a follow on from a post in 2003... (Who said we were fast down here in the Deep South...) which is in thread184-577518
In that thread, Mike Gagnon explained the firing sequence which to mere mortal me made no sense at all... but that is life.
and suggested a solution...
I had this problem with passing parameters with the pageframe too... and didn't have enough cortical RAM to work it out properly so I used a messy work-around solution...
The question I have now is how do I pass TWO parameters to the init....
FoxEgg
In that thread, Mike Gagnon explained the firing sequence which to mere mortal me made no sense at all... but that is life.
Helpful Member!mgagnon (Programmer)
16 Jun 03 19:20
aharrisreid
The sequence seems to be Load of the form, init of the pageframe and then init of the form, so pass the value to the load of the form.
Mike Gagnon
and suggested a solution...
In answer to ...
wgcs (Programmer)
16 Jun 03 20:08
"There is no way to pass the value to the Form's Load event..."
Mike said (and excuse me, Mike, for paraphrasing....)
I beg to differ on that. Use :
Var1 = "12"
do form myForm with var1
In the load of the form, calle the init() of the form with the var1 as a paramater.
Load of the form
thisform.init(var1)
Init of the form:
Lparamater lcVar1
messagebox(lcVar1)
And doing this changes the sequence of loading the form, and the init of that pageframe comes after the form's init().
Mike Gagnon
I had this problem with passing parameters with the pageframe too... and didn't have enough cortical RAM to work it out properly so I used a messy work-around solution...
The question I have now is how do I pass TWO parameters to the init....
FoxEgg