Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrGetChar

StrGetChar

Gets a single character from a string or buffer. Use this function to read a string, character by character.

Syntax

StrGetChar(String, iOffset)

String:

The source string.

iOffset:

The offset in the string, commencing at 0.

Return Value

The character at the offset in the string.

Related Functions

StrSetChar

Example

FOR i = 0 To length DO
char = StrGetChar(str, i);
! Get char from string
END

See Also

String Functions