StringReader: Peek

Peek

Returns the next character in the string without consuming that character. The character is still the next to be read.



 Public Function Peek ( ) As Long

Return Values

Long -  The character Unicode value, or -1 if the end of the string was reached.

Remarks

For characters from &H8000 and above, the value will be positive still, even though the underlying Integer is negative. This is to allow for a -1 to be returned without being confused with an actual character in the string.

See Also

Project CorLib Overview

Class StringReader Overview