Release 10.1A: OpenEdge Reporting:
Query/Results for UNIX

> ## Logical choice box

> You call this procedure in Results from within your user file using the following code:

>     RUN s-box.p (INPUT-OUTPUT logicalvariablename,
>       "String expression for first (true) box",
>       "String expression for second (false) box",
>       "String expression for text at top of box").

> Where the character expression is the text you want displayed in the error message box. For example, after you define a logical variable, you can call this procedure. Include the name of the logical variable in the procedure. Also, include text strings for the first choice, the second choice, and the text that appears at the top of the box. For example:

>     RUN s-box.p (INPUT-OUTPUT qbf-l,
>       ?, ?, "Do you want to over-write the existing report?").

> If you use a question mark (`?`) as the character string for the first box and second box, the boxes default to yes and no values. You can include text strings, such as `ENABLE` and `DISABLE` or `ON` and `OFF`.

> For example, this code produces the logical choice box shown in Figure 10–1.

> Figure 10–1: User interface generated on code input sample

> The initial value of the first parameter to `INPUT-OUTPUT` sets the default choice. For example, if the value of the first parameter to `INPUT-OUTPUT` is true, the highlight bar rests on the left option (the true value). If the first parameter to `INPUT-OUTPUT`is false, the highlight bar rests on the right option (the false value).

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095