Public Function CoerceToByteFast( _
ByVal vString As String _
) As Byte
"Coerce String To Byte (Fast)" Examples:
Return the Byte value whose in-memory representation is the same as the first character in string vString.
Faster version of the CoerceToByte function which has restrictive argument types (to avoid argument fix-up overhead).
CoerceToByteFast(Chr$(0)) = 0
CoerceToByteFast(Chr$(1)) = 1
CoerceToByteFast(Chr$(255)) = 255See also:
MakeByteFast FunctionvString: The string whose first character is to be interpreted as a Byte value.
Note: Function does NOT generate an error if vString empty or more than one character long.
Note: If vString if more than one character long, the only the first character is used.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.