Click or drag to resize

MakeShort Function

Create a Short from two bytes

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.6
Syntax
 FUNCTION MakeShort(
	bLow AS BYTE,
	bHigh AS BYTE
) AS SHORT
Request Example View Source

Parameters

bLow
Type: Byte
The number you want to have in the Low byte of the Short
bHigh
Type: Byte
The number you want to have in the High byte of the Short

Return Value

Type: Int16
Remarks
Examples
X#
1?  MakeShort(0x01, 0x01) // 256
2?  MakeShort(0xFF, 0xFF) // -1
See Also