not initialized string

 
Hello !

Could someone explain what this error message from the Expert tab means ?

Thanks very much
 
Hello !

Could someone explain what this error message from the Expert tab means ?

Thanks very much

This is very common error.
It means that somewhere in your program you are evaluating variable defined as string which is empty, nothing was ever written into it.
 

It means that somewhere in your program you are evaluating variable defined as string which is empty, nothing was ever written into it.


Thanks Sub, but aren't empty strings allowed ? Can I write if (mystring == "") ... ? It seems common to do that.
 

It means that somewhere in your program you are evaluating variable defined as string which is empty, nothing was ever written into it.


Thanks Sub, but aren't empty strings allowed ? Can I write if (mystring == "") ... ? It seems common to do that.

Yes, but you have to first write to it:
string mystring = "";
string mystring; // will give an error if tested
 
Ok, Thanks very much !
Reason: