FindByString
FindByString
Returns the FlexField object containing the target string.
Syntax
FindByString(Target, StartPos, Len, FlexDirection, IgnoreCase)
Parameters
Target |
String, input |
|
Target string to search for. |
||
StartPos |
Integer, input |
|
Integer value of the zero based screen position to start the search, which may be obtained by using the FlexScreen.Position method. |
||
Len |
Integer, input |
|
The length from StartPos to include in the search. |
||
FlexDirection |
Boolean, input |
|
Represents the direction of the search - FlexDirection.FORWARD or FlexDirection.BACKWARD. |
||
IgnoreCase |
Boolean, input |
|
Indicates whether the search is case sensitive, where true means case is ignored. |
Example
Sub Main()
CommandField = FlexFields.FindByString("command", FlexScreen.Position(1,1), 1920, FlexDirection.FORWARD, true)
If IsNull(CommandField) Then
msgbox "Command not found"
Else
msgbox CommandField.String
End if
End Sub