Download MetaTrader 5

MetaTrader 5.00 Build 687 StringConcatenate error

To add comments, please log in or register
Follow the news. View our company's official channel!
lesliel
81
lesliel 2012.08.21 02:34 

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
Rashid Umarov
Admin
11813
Rashid Umarov 2012.08.21 09:14  
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.
To add comments, please log in or register