- Alert
- CheckPointer
- Comment
- CryptEncode
- CryptDecode
- DebugBreak
- ExpertRemove
- GetPointer
- GetTickCount
- GetTickCount64
- GetMicrosecondCount
- MessageBox
- PeriodSeconds
- PlaySound
- PrintFormat
- ResetLastError
- ResourceCreate
- ResourceFree
- ResourceReadImage
- ResourceSave
- SetReturnError
- SetUserError
- Sleep
- TerminalClose
- TesterHideIndicators
- TesterStatistics
- TesterStop
- TesterDeposit
- TesterWithdrawal
- TranslateKey
- ZeroMemory
CheckPointer
The function returns the type of the object pointer.
ENUM_POINTER_TYPE CheckPointer(
|
Parameters
anyobject
[in] Object pointer.
Return value
Returns a value from the ENUM_POINTER_TYPE enumeration.
Note
An attempt to call an incorrect pointer results in the critical termination of a program. That's why it's necessary to call the CheckPointer function before using a pointer. A pointer can be incorrect in the following cases:
This function can be used for checking pointer validity. A non-zero value warranties that the pointer can be used for accessing.
To quickly validate the pointer, you can also use operator "!" (example) which checks it via an implicit call of the CheckPointer function.
Example:
//+------------------------------------------------------------------+
|
See also
Object Pointers, Checking the Object Pointer, Object Delete Operator delete