I have 2 forms - form1/oView and form2/oReports
I am calling oReports from oView
Statements in oView:
IF VARTYPE(oReports) = [O] && Forms exists
oReports.init(oView)
oReports.show()
ELSE
DO FORM arcrpts Name oReports
oReports.init(oView)
ENDif
Statements in the init() of oReports:
PARAMETERS oView
IF VARTYPE(oView) = [O]
thisform.objRef = oView
ENDif
objref is a new property that I created in oReports.
It runs fine the first time but when i go back to oView and call oReports again, I get an error saying oView is not found.
I am calling oReports from oView
Statements in oView:
IF VARTYPE(oReports) = [O] && Forms exists
oReports.init(oView)
oReports.show()
ELSE
DO FORM arcrpts Name oReports
oReports.init(oView)
ENDif
Statements in the init() of oReports:
PARAMETERS oView
IF VARTYPE(oView) = [O]
thisform.objRef = oView
ENDif
objref is a new property that I created in oReports.
It runs fine the first time but when i go back to oView and call oReports again, I get an error saying oView is not found.