code:function OngciEvent_EditTextChanged(wnd,ic){ var str =""+wnd.GetControlText(ic).toLowerCase(); if(str.search("\n")>=0){ //do thingies }}