Click or drag to resize

IsLong Function

X#
Determine if a value is a LONGINT.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION IsLong(
	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 the LONGINT data type; otherwise, FALSE.
Remarks
Examples
This example uses IsLong() to determine the appropriate conversion function:
X#
1IF IsLong(uValue)
2    cTransmit := L2Bin(uValue)
3ELSEIF IsFloat(uValue)    
4    cTransmit := F2Bin(uValue)
5ENDIF
See Also