Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TStringList<T> > Methods

TStringList<T>.Find(string,Integer) Method

Scroll Prev Top Next More

Locates the index for a string in a sorted list and indicates whether a string with that value already exists in the list. Use Find to obtain the index in a sorted list where the string S should be added. If the string S already exists in the list, Find returns True. If the list does not contain S, Find returns False. The index where S should go is returned in the Index parameter. The value of Index is zero-based, where the first string has the index 0, the second string has the index 1, and so on.

noteNote

Only use Find with sorted lists. For unsorted lists, use the IndexOf method instead.
 

alert_noteTip

If the S string is not found (thus return value of Find is False) then Index is set to the index of the first string in the list that sorts immediately before or after S.
 

Namespace: RSGenerics.Collections

Parameters

S

Type: string

Index

Type: Integer

Return Value

Type: Boolean

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb