Thursday, July 10, 2008

Passing Parameter, CloseWithReturn

string ls_bookingno

//Open a response window w_find
open(w_find, parent) //CloseWithReturn(Parent, sle_1.Text), when closing w_find
ls_bookingno = message.stringparm //received string parameter from w_find

if isnull(ls_bookingno) = False and ls_bookingno <> '' then
   sle_id.text = ls_bookingno
   sle_id.triggerevent(Modified!)
end if

/*
message.stringparm :- passes a string or a string variable.
message.doubleparm :- passes a numeric or a numeric variable.
message.powerobjectparm :- passes PB object such as structure or datawindow
*/

No comments: