Skip to main content
Table of Contents

TTMSFNCUtils.CharInStr Method

Returns the character at the 1-based position Index within s.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function CharInStr(s: string; Index: Integer): Char;
__classmethod System::WideChar __fastcall CharInStr(System::UnicodeString s, int Index);

Parameters

Name Description
s Source string.
Index 1-based character index.

Returns

The character at the requested position, or #0 when out of range.