GetPreviousPosition (Method)
Â
Â
Â
IField::GetPreviousPosition
Get the starting position of the previous protected or unprotected field.
Â
Function GetPreviousPosition(cursor As CursorPos, [ft As FieldType = UNPROTECTED]) As Long
 Parameters
No | Name | Type | Optional | Default | Description |
---|---|---|---|---|---|
1 | cursor | CursorPos | No | - | Position from where the search starts |
2 | ft | Yes | UNPROTECTED | Field type (PROTECTED or UNPROTECTED) to search and retrieve the position for | |
Return Code | Description | ||||
JGS_OK | The field position was found | ||||
JGS_NOTCONNECTED | Your application is not connected to a valid session | ||||
JGS_PARAMETERERROR | Missing or invalid parameter | ||||
JGS_POSITIONERROR | The specified screen position is invalid | ||||
JGS_SYSERROR | The function failed due to a system error | ||||
JGS_NOFIELD | Field not found or screen is not formatted | ||||
JGS_ZEROLENFIELD | The field length was 0 |
Sample Code
Â
Dim myPos as CursorPos
Dim result as Long
myPos.row = 18
myPos.column = 45
result = field.GetPreviousPosition(myPos)
If result = JGS_OK then
... Â Â ' myPos contains starting position of previous unprotected field
Else ...
 Dim result as Long
myPos.row = 18
myPos.column = 45
result = field.GetPreviousPosition(myPos)
If result = JGS_OK then
... Â Â ' myPos contains starting position of previous unprotected field
Else ...
Â
QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.
Â