Translate page

VBS_GetPosition_(Method)

Get the starting position of the specified field.

Function VBS_GetPosition(row As Variant, column As Variant) As Long

Parameters

NoNameTypeOptionalDefaultDescription

1

row

Variant

No

-

screen row inside the field for which the starting position is to be found

2

column

Variant

No

-

screen column inside the field for which the starting position is to be found

Return Code

Description

JGS_OK

The field start position was found

JGS_PARAMETERERROR

Missing or invalid parameter

JGS_NOTCONNECTED

Your application is not connected to a valid session

JGS_POSITIONERROR

The specified screen position was invalid

JGS_SYSERROR

The function failed due to a system error

JGS_NOFIELD

The specified field was not found or the host screen is not formatted

JGS_ZEROLENFIELD

The field length is 0

Sample Code

Dim row as Variant
Dim column as Variant
Dim result as Long
row = 18
column = 45
result = field.VBS_GetPosition(row, column)
If result = JGS_OK then
...   ' row and column contain starting position of field
Else ...

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

Â