Topic Path: Symbol Reference > Functions > CharsInStr Function
ContentsIndexHome
PreviousUpNext
CharsInStr Function

Indicates the position where a character occurs in a specified string.

File
function CharsInStr(
    const ASearchChar: Char; 
    const AString: String
): Integer;
Parameters 
Description 
ASearchChar 
Character to locate in the specified string.
 
AString 
String to search for the specified character value. 

Integer - Position of the character in the specified string, or 0 when the character cannot be located in the specified string.

CharsInStr is an Integer function used to determine if the character in ASearchChar occurs in the string represented by AString. The return value for the function is the position of the character in the specified string. Positions are numnbered from 1 to the length of the string in AString. The return value will contain 0 when the specified character cannot be located in the specified string.

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