14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 Creating and Sharing Applications 519<br />

Application Builder<br />

Figure 15.8 Application and Module Namespaces<br />

There are two types of scripts: named scripts and anonymous scripts.<br />

Named Scripts<br />

A named script is a function that several controls can use. The this parameter tells which control is calling<br />

the function. In the following example, Get Button Name is sent to the this parameter to print the<br />

button name to the log when the button is clicked:<br />

Button1Press = Function({this}, Print(this

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

Saved successfully!

Ooh no, something went wrong!