Click or drag to resize

OhioFieldsFindByString Method

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.

Namespace:  Flex.Hal.Ohio
Assembly:  Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 4.1.4031.1525
Syntax
public OhioField FindByString(
	string target,
	int startpos,
	int len,
	OhioDirection dir,
	bool ignorecase
)

Parameters

target
Type: SystemString
The target string to search for.
startpos
Type: SystemInt32
The offset location where the search starts. For row 1 column 1, the offset is 0.
len
Type: SystemInt32
The length from startpos to include in the search.
dir
Type: Flex.Hal.OhioOhioDirection
The direction of the search.
ignorecase
Type: SystemBoolean
Indicates if the search is case sensitive. True means that case will be ignored.

Return Value

Type: OhioField
Returns the field containing the target string. Null if the target string is not found.
Exceptions
ExceptionCondition
OhioExceptionInvalid parameter is specified.
See Also