Checks if a variable's base type is a pointer.
IsPtr ( variable )
Parameters
| variable | The variable/expression to check. |
Return Value
| Success: | Returns 1 if the expression is a pointer type. |
| Failure: | Returns 0 if expression is not pointer type. |
Remarks
Related
IsArray, IsFloat, IsHWnd, IsInt, IsString, IsNumber, IsBool, Ptr
Example
Run("notepad.exe")
Local $hWnd = WinGetHandle("[CLASS:Notepad]")
If IsPtr($hWnd) Then
MsgBox(4096, "", "It's a valid Ptr")
Else
MsgBox(4096, "", "It's not a valid Ptr")
EndIf