*textbox.lostfocus if lIncorrectData this.setfocus && Set focus to self fails for default beh. of lostfocus else ... endif if lIncorrectData nodefault && Kill default beh. this.setfocus && Set focus to self else ... endif * This is a nasty valid implementation - sometimes handyWhen implemented to your case (including "future enhancement-softseek"):
*textbox.lostfocus if lIncorrectData select cnt(*) from myTable ; order by myOrder ; where myKey < trim(this.value) ; into array aTemp && myOrder and myKey match with rowsource This.parent.Combo1.listindex = ; min(iif(type("aTemp")="U",0,aTemp[1])+1,; This.parent.Combo1.listcount) This.parent.Combo1.setfocus && Combo and text are in same (parent) container else ... endifCetin