Searches the presentation space for the specified text string starting from the specified start position. If found, it returns true and the start position of the string.


Namespace: ScreenUPG
Assembly: ScreenUPG (in ScreenUPG.dll)

Syntax

Visual Basic (Declaration)
Public Function findString( _ 
   ByVal inText As String,  _ 
   ByVal inStartRow As Integer,  _ 
   ByVal inStartColumn As Integer,  _ 
   ByVal outRow As MutableInt,  _ 
   ByVal outColumn As MutableInt _ 
) As Boolean
C#
public bool findString(
   string inText,
   int inStartRow,
   int inStartColumn,
   MutableInt outRow,
   MutableInt outColumn
)
C++
public:
 bool findString(
   String inText,
   int inStartRow,
   int inStartColumn,
   MutableInt outRow,
   MutableInt outColumn
) sealed 
J#
public bool findString(
   string inText,
   int inStartRow,
   int inStartColumn,
   MutableInt outRow,
   MutableInt outColumn
)
JScript
public  function findString(
   inText : String,
   inStartRow : int,
   inStartColumn : int,
   outRow : MutableInt,
   outColumn : MutableInt
) : bool

Parameters

inText
The text to search for.
inStartRow
The row in which to begin searching.
inStartColumn
The column in which to begin searching.
outRow
The row where the string was found. If the string is not found, the value is set to zero.
outColumn
The column where the string was found. If the string is not found, the value is set to zero.

Return Value

true or false. If the string is found, the value is set to true. Otherwise, it is set to false.

Example

[C#]

 Copy Code
            string inText = "PASSWORD";
            int inStartRow = 1;
            int inStartCol = 1;
            MutableInt outRow = new MutableInt();
            MutableInt outCol = new MutableInt();
            
            // Find the string
            bool found = screen.findString(inText, inStartRow, inStartCol, outRow, outCol);
            
[VB]
 Copy Code
            Dim inText As Integer
            Dim inStartRow As Integer
            Dim inStartCol As Integer
            Dim outRow As New Mutable.MutableInt
            Dim outColumn As New Mutable.MutableInt
            Dim found As Boolean
            
            inText = "PASSWORD"
            inStartRow = 1
            inStartCol = 1
            
            'Find the string
            found = screen.findString(inText, inStartRow, inStartCol, outRow, outCol)
            

See Also