StringConcatenate
StringConcatenate
The function returns the string formed by concatenation of parameters transformed into string type.
string StringConcatenate(
void argument1, // first parameter of any simple type
void argument2, // second parameter of any simple type
... // next parameter of any simple type
);Parameters
- argumentN
[in] Any comma separated values. From 2 to 63 parameters of any simple type.
Return Value
Returns the string, formed by concatenation of parameters transformed into string type. Parameters are transformed into strings according to the same rules as in Print() and Comment().
Note
Parameters can be of any type. Number of parameters can’t be less than 2 or more than 64.
Example:
string text;
text=StringConcatenate("Account free margin is ", AccountFreeMargin(), " Current time is ", TimeToStr(TimeCurrent()));
// text="Account free margin is " + AccountFreeMargin() + " Current time is " + TimeToStr(TimeCurrent())
Print(text);See also
Last updated on