>Hi,
>
>My existing code calling the search form as follow:-
>
>
>DO FORM client_srh WITH gUserno TO cVarCusno
>
>
>the variable gUserno is parameter passing to the search form,
>the cVarCusno is return back the selected customer code from the search form.
>If using your solution, how to calling the search form ?
>
>Please advise.
>
>Thanks
>Derek
Using my solution
oParam = createobject('empty')
addproperty(oParam,'UserNo',m.gUserNo) && UserNo should be local var, not global
do form Client_Srh with oParam
--------------------
Form Client_Srh Init
lparameters toParam
thisform.oParam = toParam
thisform.UserNo = toParam.UserNo
.............
If it's not broken, fix it until it is.
My Blog