FindByString

Top  Previous  Next

Searches the collection for the target string and returns the OhioField object containing that string. The string

must be totally contained within the field to be considered a match. If the target string is not found, a null will be returned.

 

Visual Basic Syntax

 

[TTnbOhioField =] Fields.FindByString(targetString As String, startPos As TTnbOhioPosition, length As Integer, dir As Integer, ignoreCase As Boolean)

 

Delphi Syntax

 

[TTnbOhioField :=] Fields.FindByString(targetString:string; startPos:TTnbOhioPosition; length:integer; dir:integer; ignoreCase:boolean);

 

 

Parameters

 

Parameter

Description

targetString

The target string.

startPos

The row and column where to start. The position is inclusive (for example, row 1, col 1 means that position 1,1 will be used as the starting location and 1,1 will be included in the search).

length

The length from startPos to include in the search.

dir

An OHIO_DIRECTION value.

ignoreCase

Indicates whether the search is case sensitive. True means that case will be ignored. False means the search will be case sensitive.