PROCEDUREValidif thisform.wlHTMLgen ...return .T.elsereturn thisForm.chkValue(This)endifPROCEDURE chkValue(toObject)local luValue, luResult luValue = toObject.Value ... this.chkValueObject = sys(1272, m.toObject) && store object's address into a new form property (to be created) luResult = thisForm.wMessagebox('wFormCallBack', 'Question',4+16+256,'Title') && 'wFormCallBack' should always be the first parameter...return m.luResultPROCEDURE wFormCallBackLPARAMETERS tuUserChoice && User's choicelocal loObject, llResult llResult = m.tuUserChoice = 6 && Yesif not m.llResult and wlWeb() loObject = evaluate(thisForm.chkValueObject) m.loObject.setFocusendifreturn m.llResult
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)