CorString: CharAt

CharAt

Returns character value from a string at the specified index.



 Public Function CharAt(
	  ByRef s As String,
	  ByVal Index As Long ) As Integer

Parameters

s
[ByRef] String. The string to return the character from.
Index
[ByVal] Long. The position of the character in the string.

Return Values

Integer -  A 16-bit integer representing the character.

Remarks

Index is zero-based.

Exceptions

Exception Condition
ArgumentOutOfRangeException Index is less than zero.
-or-
Index is equal to or greater than the length of s.

See Also

Project CorLib Overview

Class CorString Overview