Programming with Reflection

image\rwnprg32.gif FindText method

 

Syntax Found = object.FindText(SearchFor, StartRow, StartColumn, [Options])

 

Description

Searches for a string in display memory. If the string is found, the row location where the string begins is returned to the FoundTextRow property, and the column location where the string begins is returned to the FoundTextColumn property.

Spaces at the ends of display lines are not included when searching through the display. Each line in the display is returned with a carriage return/linefeed at the end.

Arguments

SearchFor Argument type: String
Required
Specifies the string to search for. The search is case sensitive.

StartRow Argument type: Integer
Required
Specifies the row in display memory where the search is to begin. The row is specified in host addressable coordinates.

To begin the search at the top of the display memory, use the value of the DisplayMemoryTopRow property for this parameter. To begin the search at the top of the current screen, use the value of the ScreenTopRow property.

StartColumn Argument type: Integer
Required
Specifies the column in display memory in which to start the search. The first column is column 0.

Options Argument Type: Enumeration
Optional
Specifies additional, non-default behavior for the method. This method has only one option:

 rcNoTranslation
Indicates that the SearchFor string should not be translated from the PC character set into the host character set.

Return

Found Return type: Boolean
True if the SearchFor string is found, or False if the string is not found.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command