Option - set script options

Return to Introduction  Previous page  Next page

option([option1][,option2])

Where:

option1is one of the options listed below.        
option2is one of the options listed below.        

 

Valid options are:

AskForPos(CENTER)

positions the AskFor dialog box in the center of the TN3270 Plus main window.

AskForPos(CENTRE)

positions the AskFor dialog box in the center of the TN3270 Plus main window.

AskForPos(DEFAULT)

positions the AskFor dialog box in the center of the TN3270 Plus main window.

AskForPos(CURSOR)

positions the top left corner of the AskFor dialog box at the cursor location.

AskForPos(top,left[,PIXELS])

positions the top left corner of the AskFor dialog box at the specified pixel offset from the top left corner of the TN3270 Plus window. top and left are the offset in pixels. The offset may be negative to move the dialog box outside the TN3270 Plus window.

AskForPos(row,col,ROWCOL)

positions the top left corner of the AskFor dialog box at the specified row and column in the TN3270 Plus terminal window.

AskForPos(row,col,CURSOR)

positions the top left corner of the AskFor dialog box at the specified row and column offset from the cursor location in the TN3270 Plus terminal window.

CheckListPos(CENTER)

positions the CheckList dialog box in the center of the TN3270 Plus main window.

CheckListPos(CENTRE)

positions the CheckList dialog box in the center of the TN3270 Plus main window.

CheckListPos(DEFAULT)

positions the CheckList dialog box in the center of the TN3270 Plus main window.

CheckListPos(CUSOR)

positions the top left corner of the CheckList dialog box at the cursor location.

CheckListPos(top,left[,PIXELS])

positions the top left corner of the CheckList dialog box at the specified pixel offset from the top left corner of the TN3270 Plus window. top and left are the offset in pixels. The offset may be negative to move the dialog box outside the TN3270 Plus window.

CheckListPos(row,col,ROWCOL)

positions the top left corner of the CheckList dialog box at the specified row and column in the TN3270 Plus terminal window.

CheckListPos(row,col,CURSOR)

positions the top left corner of the CheckList dialog box at the specified row and column offset from the cursor location in the TN3270 Plus terminal window.

DateFormat({YMD|DMY|MDY})

set the format for the date parameters used in script commands.
YMD = yyyy/mm/dd
DMY = dd/mm/yyyy
MDY = mm/dd/yyyy

If omitted, the date format is assumed to be the system short date format.

TextBoxPos(CENTER)

positions the TextBox dialog box in the center of the TN3270 Plus main window.

TextBoxPos(CENTRE)

positions the TextBox dialog box in the center of the TN3270 Plus main window.

TextBoxPos(DEFAULT)

positions the TextBox dialog box in the center of the TN3270 Plus main window.

TextBoxPos(CUSOR)

positions the top left corner of the TextBox dialog box at the cursor location.

TextBoxPos(top,left[,width,height][,PIXELS])

positions the top left corner of the TextBox dialog box at the specified pixel offset from the top left corner of the TN3270 Plus window. top and left are the offset in pixels. The offset may be negative to move the dialog box outside the TN3270 Plus window. width and height define the size of the dialog box in pixels.

TextBoxPos(top,left[,width,height],ROWCOL)

positions the top left corner of the TextBox dialog box at the specified row and column in the TN3270 Plus terminal window. width and height define the size of the dialog box in terminal rows and columns.

TextBoxPos(top,left[,width,height],CURSOR)

positions the top left corner of the Text Box dialog box at the specified row and column offset from the cursor location in the TN3270 Plus terminal window. width and height define the size of the dialog box in terminal rows and columns.

WaitForPos(CENTER)

positions the WaitFor dialog box in the center of the TN3270 Plus main window.

WaitForPos(CENTRE)

positions the WaitFor dialog box in the center of the TN3270 Plus main window.

WaitForPos(DEFAULT)

positions the WaitFor dialog box in the center of the TN3270 Plus main window.

WaitForPos(CURSOR)

positions the top left corner of the WiatFor dialog box at the cursor location.

WaitForPos(top,left[,PIXELS])

positions the top left corner of the WaitFor dialog box at the specified pixel offset from the top left corner of the TN3270 Plus window. top and left are the offset in pixels. The offset may be negative to move the dialog box outside the TN3270 Plus window.

WaitForPos(row,col,ROWCOL)

positions the top left corner of the WaitFor dialog box at the specified row and column in the TN3270 Plus terminal window.

WaitForPos(row,col,CURSOR)

positions the top left corner of the WaitFor dialog box at the specified row and column offset from the cursor location in the TN3270 Plus terminal window.

 

The option command specifies one or more options for a script. Options remain in effect until another option command is processed or to the end of the script.

Examples

option(AskForPos(50,50))

option(AskForPos(center),WaitForPos(CENTER))

option(AskForPos(0,-100))

option(DateForamt(YMD))

option(TextBoxPos(0,0,60,20,ROWCOL)

option(WaitForPos(10,10,ROWCOL))

option(WaitForPos(center))


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.