Table of Contents

TTMSFNCUtils.FirstChar Method

Finds the first character from a character set in a string.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

class function FirstChar(ACharset: TTMSFNCUtilsCharSet; AValue: string; var spos: Integer): char;

Parameters

Name Description
ACharset Character set to search for.
AValue String to inspect.
spos Receives the 1-based position where the character was found.

Returns

First matching character, or #0 when no match is found.