mRetVal = 0 >>l_Info = CREATEOBJECT("MSG_Question","Do You wann really exit ?") >>l_Info.show() >>*in MSG_Question instead of form.retpar directly set mretvalI also think it's not wise to use public var for this - your modal form may call another, then that one would have to use the same variable, or use another one, so we'd either end up being unsure which one is used (though, if I'm not wrong of modal forms - there can be only one at a time), or having to do lots of bookkeeping of the public vars used.