Click or drag to resize

IsPtr Function

X#
Determine if a value is a pointer.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION IsPtr(
	uValue AS USUAL
) AS LOGIC
Request Example View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Logic
TRUE if the value is a pointer; otherwise, FALSE.
Remarks
Examples
This example uses IsPtr() to check whether a conversion to a pointer is needed:
X#
1IF !IsPtr(uValue)
2    uValue := Ptr(_CAST, uValue)
3ENDIF
See Also