ScreenUPG
getString Method
Example 



The first row from which to retrieve text.
The first column from which to retrieve text.
The number of presentation space positions to return. Ignored when both inStartRow and inStartColumn are zero.
Returns the visible text from the specified location.
Syntax
'Declaration
 
Public Function getString( _ 
   ByVal inStartRow As Integer, _ 
   ByVal inStartColumn As Integer, _ 
   ByVal inLength As Integer _ 
) As String
'Usage
 
Dim instance As ScreenUPG 
Dim inStartRow As Integer 
Dim inStartColumn As Integer 
Dim inLength As Integer 
Dim value As String 
  
value = instance.getString(inStartRow, inStartColumn, inLength)
public string getString( 
   int inStartRow,
   int inStartColumn,
   int inLength 
)
public: 
String^ getString( 
   int inStartRow,
   int inStartColumn,
   int inLength 
) 

Parameters

inStartRow
The first row from which to retrieve text.
inStartColumn
The first column from which to retrieve text.
inLength
The number of presentation space positions to return. Ignored when both inStartRow and inStartColumn are zero.

Return Value

The text string from the presentation space.
Remarks
If inStartRow and inStartColumn are zero, the entire presentation space is returned.
Example
int row = 1;
int column = 1;
int length = 12;
            
// Get the text string located at the home position.
string visibleString = screen.getString(row, column, length);
Dim row As Integer
Dim column As Integer
Dim length As Integer
Dim visibleString As String
            
row = 1
column = 1
length = 12
            
'Get the text string located at the home position.
visibleString = screen.getString(row, column, length)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ScreenUPG Class
ScreenUPG Members
getStringEx Method