Topic Path: Symbol Reference > Functions > FindFirstOf Function
FindFirstOf Function

Locates the position where any of the characters in a search string occur in a string value.

function FindFirstOf(
    AFind: String; 
    AText: String
): Integer;
Values to be compared.
Data to searched. 

Integer - Position where a search string character was located.

FindFirstOf is an Integer function that locates the position in AText where any one of the characters in AFind can be found. FindFirstOf will iteratively search for each character in AFind until all characters in AFind have compared to AText. The return value will contain the lowest index position for any of the characters in AFind, or 0 when none of the characters in AFind occur in AText.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.