Yes you are right, in the begin of my script I forgot to make the strings fixed for username and password. Therefore this function doesn't work. Zeitwerk made me understand that last night and saved me from a long night with trial and error.

Code:

string username;
string password;
Function refreshAuth()
{
str_cpy(username, "");
str_cpy(password, "");
}



So now I have changed the code again to:

Code:

string username "#16";
string password "#32";
Function refreshAuth()
{
str_cpy(username, "");
str_cpy(password, "");
}



And this works perfect, but if you make it fixed at the begin of the script and afterwards empty the string with str_cpy(username, ""); does it stay fixed? I tried and it looks like that, or do I need to empty with str_cpy(username, "#16"); instead??

Dusty


smile