Ok I got a strange problem, and I hope someone can help...
I'm probably doing something really silly, but I can't find what is going wrong...
here is the code:
js code:
function OngetbackEvent_EditTextChanged(wnd,ic){
var str =""+wnd.GetControlText(ic).toLowerCase();
//schermpje.SendMessage("automatisch bericht door roosterscript:\n"+str);
if(str.search("_")>=0){ //do thingies
str = str.substring(0,str.length-1);
if(str == "close"){
wnd.Close(36259);
}else{
schermpje.SendMessage("automatisch bericht door roosterscript:\n");
//Debug.Trace("automatisch bericht door roosterscript:\n"+str);
wnd.SetControlText("txtje","");
}
}
}
The commented SendMessage works, the uncommented one after the else statement doesn't and it doesn''t give an error. The commented debug.trace works...
Does anyone know why?