Returns a string consisting of the single character in arg1 located at index given in arg2. The first character has index 0. An empty string is returned if the index is out of range.
Number | Type | Compulsory | Default | Description |
---|---|---|---|---|
1 |
string |
Yes |
|
Input string |
2 |
real |
Yes |
|
Character position |
Return type: string
Show Char('Hello World!', 4) |
Char('Hello World!', 4) = 'o' |
|