Translate page

VBS_GetText_(Method)

Retrieve the contents of the specified field.

Function VBS_GetText(row as Variant, column as Variant, buffer As Variant, bufsize As Long) As Long

Parameters

NoNameTypeOptionalDefaultDescription
1row

Variant

No-

row inside the field for which you want to retrieve the data

2

column

Variant

No

-

column inside the field for which you want to retrieve the data

3

buffer

Variant

No

-

Buffer to hold the copied data on output.

3

bufsize

Long

No

-

Maximum length of the string to retrieve

Return Code

Description

JGS_OK

The specified field was copied successfully

JGS_PARAMETERERROR

Missing or invalid parameter

JGS_MEMORY

Not enough memory to complete the operation

JGS_NOTCONNECTED

Your application is not connected to a valid session

JGS_TRUNCATED

The field contents were copied successfully but the field was longer than the buffer size and the data was truncated

JGS_POSITIONERROR

The screen position was invalid

JGS_SYSERROR

The function failed due to a system error

JGS_NOFIELD

The screen is not formatted

Sample Code

Dim row as Variant
Dim column as Variant
Dim myBuffer as Variant
Dim myLength as Long
Dim result as Long
myLength = 200
row = 18
column = 45
result = field.VBS_GetText(row, column, buffer, myLength)

QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.

Â