# INPUT POPUP

Syntax:

Then: INPUT POPUP (r,c) aa "message"

Then: INPUT POPUP(r,c) n "message" DEFAULT [value]

Version Ref: 4.1

5.0 (enhanced)

Description:

Functions the same as INPUT, but displays the input request message in a popup box at row "r" and column "c". If these coordinates are omitted, the popup box is centered on the screen.

If the row and column value specified position any part of the window beyond the limits of the screen, the window is automatically re-positioned to appear completely within the screen boundaries.

The location of the upper left corner of the popup window is determined by the row "r" and column "c" values. If row and column are omitted, the window is centered on the screen. The popup window can also be centered by using "-1" for the row or column. This is useful if you want to center the window vertically or horizontally but want to specify a row or column.

The width of the popup window is determined by the defined length of the input variable plus the length of any message text on the same line.

The height of the window is determined by the number of message lines.

The code '"\N" can be used to begin a new line of text within the popup window.

Examples:

If: 'display the input popup box at row 5 and column 7
Then: input popup ("5","7") aa(8,mdy/) "A2-SYSTEM ARCHIVE PROCEDURE\n----------------\nEnter Archive Date: "
If: 'center the input popup box horizontally and vertically
Then: input popup aa(8,mdy/) "A2-SYSTEM ARCHIVE PROCEDURE\n---------------------------\nEnter Archive Date: "
If: 'center the input popup box vertically starting in column 1
Then: input popup ("-1","1") aa(8,mdy/) "A2-SYSTEM ARCHIVE PROCEDURE\n---------------\nEnter Archive Date: "
If: 'center the input popup box horizontally in row 1
Then: input popup ("1","-1") aa(8,mdy/) "A2-SYSTEM ARCHIVE PROCEDURE\n---------------\nEnter Archive Date: "

5.0 INPUT POPUP(r,c) n "message" DEFAULT [value]

Defaults the value of the input. You can optionally specify the

value, or use the current value of the input field.

Example:

INPUT POPUP State "Enter state: " DEFAULT "NY"

Asks for the state, with "NY" defaulted in the input field.

Note: Make sure that "n" is defined e.g. declare State(2,state)