wrong error messages 4052, 4051 by mt4 - mt5 too?

 

Hi,

I realized a nasty error in mt4:

string strEmpty, strCompare = "lkjhsadslkjh";
if ( StringFind(strEmpty, strCompare) < 0 ) strEmpty = strEmpty +";"+ strCompare;

As strrEmpty is empty (not initialized) mt4 throws the error 4052 (= ERR_STRING_FUNCTION_INTERNAL: String function internal error)

If I slightly modify the a.m. code:

string strEmpty="", strCompare = "lkjhsadslkjh";
if ( StringFind(strEmpty, strCompare) < 0 ) strEmpty = strEmpty +";"+ strCompare;

I get the error 4051 (=ERR_INVALID_FUNCTION_PARAMVALUE:Invalid function parameter value).

This applies to other Mt4 string functions as well. :(

I told this the ServiceDesk (NULL was finally accepted as a mathematical number and even a double against zero ( double v; .. if (val == 0.0) ...) is caught by mt4!) ) but I had to learn:

It works in this way about 10 years. We will not change anything. Some users depend on this behavior.

My question: Does mt5 shows the same behaviour or is it able to recognize even an empty string as a valid string?

Reason: