Quote:

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 on the first time the application is loaded and ENTER is hit twice. After that it does prevent sending empty string. Should I try to do string compare beforehand?




try this:

Code:
function TextEingeben
{
if(inkey_active)
{
return;
}
str_cpy(input_str,"");
inkey(input_str);

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




"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku