Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Background Color
coloryellow
IScreen::SetString


Copy a text string to a specified position in the QWS3270 screen.

 

Background Color
Function SetString(cursor As CursorPos, text As String) As Long

 


Parameters

NoNameTypeOptionalDefaultDescription
1cursorCursorPosNo-

 

2

text

String

No

-

 

Return Code

Description

JGS_OK

The text was successfully copied

JGS_NOTCONNECTED

Your application is currently not connected to any valid session

JGS_PARAMETERERROR

Missing or invalid parameter

JGS_SYSERROR

The function failed due to a system error

JGS_INHIBITED

The position in the screen is protected or the text string contains invalid data (such as a field attribute)

JGS_TRUNCATED

The text string was truncated during the copy

JGS_POSITIONERROR

The specified position in the screen was invalid

Sample Code


 

Background Color
coloryellow
Dim myPos as CursorPos
Dim myText as String
Dim result as Long
myPos.row = 18
myPos.column = 45
myText = "Jolly Giant Software"
result = screen.SetString(myPos, myText)



Back to IScreen member


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