>>technical answer is because in .init () you used LPARAMETER and not PARAMETER
>
>Are you sure about that ?
if it is still on the stack, certainly, otherwise why would the OP assume it to be available in the button...
>
>
>>using Al's hint is the better approach than to switch from LPARAMETER to PARAMETER
>>
>>;-)
>>
>>
>>>
>>>do childrorm with thisform
>>>
>>>the child form init method
>>>
>>>lparameters opform
>>>
>>>I can display out the value of the opform.nlineno in the child form's init method,
>>>
>>>Messagebox(opform.nlineno)
>>>
>>>but I can't display out the value in the Button object in the child form's click method,
>>>it prompt me an error message, "object opform is not found", when I click the button in the child form.
>>>
>>>Why ?
>>>Please advise
>>>
>>>Derek Yim