string StringConcatenate( ...)
Forms a string of the data passed and returns it. Parameters can be of
any type. Amount of passed parameters cannot exceed 64.
渡されたデータの文字列を形成し、それを返します。パラメータは、任意の型を使用できます。渡すパラメータの総数は、64 を超えることはできません。
Parameters are transformed into strings according the same rules as those
used in functions of Print(), Alert() and Comment(). The returned string is obtained as a result of concatenate of strings
converted from the function parameters.
パラメータは、Print()、Alert() および Comment() 関数の使い方と同じ規則にしたがって、文字列に変換されます。返される文字列は、関数のパラメータから文字列に変換し、連携した結果として取得されます。
The StringConcatenate() works faster and more memory-saving than when strings
are concatenated using addition operations (+).
StringConcatenate() は、+ 演算子を使用して文字列を連結させる時よりも処理が早く、より多くのメモリを節約することができます。
Parameters:
パラメータ:
... - Any values separated by commas. It can be up to 64 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);
|