datetime GlobalVariableSet(string name, double value)
Sets a new value of the global variable. If it does not exist, the system
creates a new gloabal variable. If the function succeeds, the returned
value will be the last access time. Otherwise, the returned value will
be 0. To get the detailed error information, one has to call the GetLastError() function.
グローバル変数に新しい値を設定します。もし、それが存在しない場合は、システムは新しいグローバル変数を作成します。もし関数が正常終了した場合は、返される値は最終アクセス時刻になります。それ以外の場合、返される値は、0
になります。詳細なエラー情報を取得するには、GetLastError()
関数を呼び出します。
Parameters:
パラメータ:
name - Global variable name.
グローバル変数の名前。
value - The new numeric value.
新しい数値。
Sample:
サンプル:
//---- try to set new value
if(GlobalVariableSet("BarsTotal",Bars)==0)
return(false);
//---- continue processing
|