MQL4 Reference
Global variables
GlobalVariableCheck
| bool GlobalVariableCheck( |
string name) |
Returns TRUE if the global variable exists, otherwise, returns FALSE.
To get the detailed error information, one has to call the GetLastError() function.
Parameters:
| name |
- |
Global variable name. |
Sample:
// check variable before use
if(!GlobalVariableCheck("g1"))
GlobalVariableSet("g1",1);
|
|
|