Programming with Reflection

image\rwnprg32.gif FindField method

 

Syntax object.FindField Row, Column, FindType, FindAttribute

 

Description

Locates a field with the specified attributes and sets the values of the following properties (if the field is found):

FoundFieldStartRow: The beginning row of the field.

FoundFieldStartColumn: The beginning column of the field.

FoundFieldEndRow: The ending row of the field.

FoundFieldEndColumn: The ending column of the field.

FoundFieldLength: The number of characters in the field.

Arguments

Row Argument type: Integer
The row in which to start searching. The search starts at the beginning of the field specified by Row and Column, and not at the exact coordinates specified by Row and Number. You can use rcMouseRow to specify the row where the mouse was last clicked.

Column Argument type: Integer
The column in which to start searching. The search starts at the beginning of the field specified by Row and Column, and not at the exact coordinates specified by Row and Number. You can use rcMouseCol to specify the column where the mouse was last clicked.

FindType Argument type: Enumeration
The direction in which to search for the field. The possible values are:

 rcCurrent

 Checks only the current field (as specified by the Row and Column arguments) to determine if it has the specified attributes.

 rcPrevious

 Searches the current field and then backward to the beginning of the screen for a field with the specified attributes.

 rcNext

 Searches the current field (as specified by the Row and Column arguments) and then forward to the end of the screen for a field with the specified attributes.

FindAttribute Argument type: Enumeration
The attributes of the field. This method returns an error if a field with the specified attributes is not found. The possible values are:

 rcAnyField

 Finds any field.

 rcProtected

 Finds a protected field.

 rcUnprotected

 Finds an unprotected field.

 rcPenDetect

 Finds a pen-detect field.

 rcNotPenDetect

 Finds a non-pen-detect field.

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command