MetaTrader 5.00 Build 687 StringConcatenate error

 

StringConcatenate error in MetaTrader 5.00 Build 687, when output string was not initialized yet, and at least one of the parameters is an imported function with string return type. (tested with Strategy tester)

example code fragment

#import ...

string getCmdStr( int cmd);
// ...

string s1;    StringConcatenate(s1, "prefix", getCmdStr(cmd)); Print(s1);  // output:  prefixprefix
string s2=""; StringConcatenate(s2, "prefix", getCmdStr(cmd)); Print(s2);  // output:  prefixSELL
Print("prefix", getCmdStr(cmd));  // output:  prefixSELL
 
Could you write to Servicedesk with all details? Thank you.
Get in touch with developers using Service Desk!
Get in touch with developers using Service Desk!
  • www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
Reason: