Topic: APLX Help : System Classes : Methods : Set
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

The 'Set' method


Argument: Nested vector of property-value pairs
Result: None

Valid for: Any object

The Set method allows you to set multiple property values in a single statement, using ⎕WI syntax (it cannot be used with dot notation). The argument is a nested vector of property names and values.

For example, the following sequence sets three properties for an 'OK' button:

     'Win.But' ⎕WI 'where' 5 9
     'Win.But' ⎕WI 'title' 'OK'
     'Win.But' ⎕WI 'enabled' 0

You can achieve the same result in one statement using the Set method as follows:

     'Win.But' ⎕WI 'Set' ('where' 5 9) ('title' 'OK') ('enabled' 0)

Topic: APLX Help : System Classes : Methods : Set
[ Previous | Next | Contents | Index | APL Home ]