YN_POSITION

Syntax

Example

Description/Remarks

YN_POSITION  x_location, y_location, "text", "optional _title"800

YN_POSITION 10,0, "Do you want to exit now?"

Like the YesNo Message, this command displays a message with two buttons, a Yes and a No, and a message. If Yes is chosen, 1 is returned. If No is chosen, 0 is returned.

The x and y positions are measured in pixels, with 0,0 being the upper left corner of the screen. On a monitor with 1042 by 768 resolution, the lower right corner would be 1042,768. If you set x, y larger than the system’s resolution, the program will position the message at position 0,0.

You should either enclose the YN_POSITION command in parentheses, as in

IF ( YN_POSITION 55, 55, "Is the data OK?"), GOTO [D2], GOTO [D1]

or be sure to include the optional title in order to make the formula execute. Otherwise, the program will read the first GOTO as the optional title and the second GOTO as the command to execute if the test is true.

You also can put the YN_POSITION command in one cell, say [C1], and use the IF command in a later cell:

IF ([C1]=1), GOTO [D2], GOTO [D1]

or

IF [C1], GOTO [D2], GOTO [D1]

See also IF, GOTO, YESNO