PublicFunctions: LongToChar

LongToChar

Converts a Char value greater than 32768 to the corrisponding negative Integer value without overflow.



 Public Function LongToChar(
	  ByVal Value As Long ) As Integer

Parameters

Value
[ByVal] Long. The Long ASCII value to be converted.

Return Values

Integer -  Integer version of the Long value.

Remarks

The Value can only range from -32767 to 65535, otherwise an ArgumentOutOfRangeException will be thrown.

See Also

Project CorLib Overview

Class PublicFunctions Overview