Dialog_Input_1(1,"`START`, `START`", WORKAREA+CENTER,0,0) Reg_Empty(103) #99=Macro_Num //#103=Dialog_Input_1(1,"`For your information`, `Error`", WORKAREA+TOP+LEFT,20,20) //if (#103==0) { Reg_Lock_Macro(CLEAR) //Visual_Macro(#94) //break_out //} Reg_Set(94, ^ Chain(#99 ,"start") ^) #94=Visual_Macro Visual_Macro(CLEAR) Reg_Lock_Macro(94) :START: repeat (ALL) { #90=Dialog_Input_1(103,"`Test`, `??Select Search`, `[&Ok]`,`[&Cancel]`", SET+SCREEN+CENTER,0,0) if (#90!=1) { // Cancel or ESC break } Search("\@(103)", REGEXP+BEGIN+NOERR) if (Error_Flag) { RS(104, "ERR") } else { RS(104, "OK") } Update Dialog_Input_1(103,"`Result`, `|@(103)`, `|@(104)`, `[&Ok]`", SET+SCREEN+CENTER,0,0) } Reg_Lock_Macro(CLEAR) Visual_Macro(#94)