14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 11 Display Trees 379<br />

Modal Windows<br />

line up (2,<br />

"Alpha (0-1)", a=edit number (0.05),<br />

"Sigma (0-5)", sd=edit number (1),<br />

"Effect (0-5)", eff=edit number (2),<br />

"Sample (2-100)", n=edit number (2)),<br />

h list(<br />

button("Cancel"),<br />

button("OK"))));<br />

{a = 0.03, sd = 2, eff = 2, n = 50, Button(1)}<br />

When you are ready to use some of the values, you have to unload them from the list returned:<br />

sd = result["sd"];<br />

eff = result["eff"];<br />

Use EvalList to evaluate an entire list of assignments all at once:<br />

RemoveFrom(result,5); // since Button() is undefined<br />

EvalList(result);<br />

Constructing Dialogs and Column Dialogs<br />

Table 11.4 shows describes the display box constructors used in Dialogs and Column Dialogs. Note the<br />

following:<br />

• A Column Dialog automatically includes the list of columns in the data table.<br />

• Both windows automatically include an OK button if no buttons are defined.<br />

• A Column Dialog also automatically includes Cancel and Remove buttons.<br />

Table 11.4 Dialog and Column Dialog Constructors<br />

Constructor Syntax Explanation<br />

Dialog<br />

Column<br />

Dialog<br />

Dialog( contents of<br />

window )<br />

Column Dialog(<br />

contents of<br />

window )<br />

Draws a modal window that includes any of the<br />

items listed in this table. The contents must be<br />

separated from each other by commas, rather than<br />

semicolons.<br />

Draws a modal window for the user to make column<br />

role assignments. The contents must be separated<br />

from each other by commas, rather than semicolons.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!