Thank you I changed the code to:

Code:
function TextEingeben
{
if(inkey_active)
{
return;
}

inkey(input_str);

if(result==13)
{
if(str_cmpi(input_str,""))
{
return;
}
NachrichtAnServerSenden();
}
}



Only it pass and send empty string the first time the application is loaded when ENTER is hit twice. After that it does prevent sending empty string though. Should I compare the string beforehand?


smile