GetChar Function


GetChar Function

Class

Microsoft.VisualBasic.Strings

Syntax

     Dim result As Char = GetChar(str, index) 


str (required; String)

The string from which to extract the character


index (required; Integer)

Position of the character to extract (1-based)

Description

The GetChar function returns the character that is at position index within a given string.

Usage at a Glance

If index exceeds the number of character positions in str, an error occurs.

Version Differences

The GetChar function did not exist in VB 6.

See Also

InStr Function, Left Function, Mid Function, Right Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net