StringConcatenate

2019/07/17 19:00
123

string StringConcatenate(…)

渡されたデータを文字列に整形する。
変数は様々な型が許されるが64個以上の変数は許されない。

変数は、Print()、 Alert() Comment()と同様のルールで文字列へと変換される。
返り値は、渡した変数を連結させた文字列となる。

StringConcatenate()で文字列を連結させることは、+演算子を用いて文字列を連結させるよりも早く、また使用メモリを節約する。

Parameters:
… - コンマで区切った値。最大64個
Sample:
string text;
text=StringConcatenate("Account free margin is ", AccountFreeMargin(),
"Current time is ", TimeToStr(TimeCurrent()));
// slow text="Account free margin is " + AccountFreeMargin()
// + "Current time is " + TimeToStr(TimeCurrent())
Print(text);

コメント