wcglorioso
Programmer
"I create a parameter object and populate it"
loParameters = CREATEOBJECT( 'Line' )
loParameters.AddProperty('cAction', 'EDIT' ) )
loParameters.AddProperty('nValue', lnKey )
"Now I call a form which expects a parameter in its INIT method and returns a status value"
DO FORM frmProduction WITH loParameters TO lnRetVal
"Here is the INIT method of the form"
LPARAMETERS oParameters
this.cAction=oParameters.cAction
this.nValue=oParameters.nValue
"A compile time error occurs telling me that oParameters is not an object"
"My solution was to make loParameters as a private object variable and remove the parameter definition from the INIT method of the form since loParameters is already scoped to this form."
"The object reference is not passed to the "
"It solved the problem but it don't seem to fit the OOP style so I am asking for enlightenment once more."
"Thanks in advance for any reply."
loParameters = CREATEOBJECT( 'Line' )
loParameters.AddProperty('cAction', 'EDIT' ) )
loParameters.AddProperty('nValue', lnKey )
"Now I call a form which expects a parameter in its INIT method and returns a status value"
DO FORM frmProduction WITH loParameters TO lnRetVal
"Here is the INIT method of the form"
LPARAMETERS oParameters
this.cAction=oParameters.cAction
this.nValue=oParameters.nValue
"A compile time error occurs telling me that oParameters is not an object"
"My solution was to make loParameters as a private object variable and remove the parameter definition from the INIT method of the form since loParameters is already scoped to this form."
"The object reference is not passed to the "
"It solved the problem but it don't seem to fit the OOP style so I am asking for enlightenment once more."
"Thanks in advance for any reply."