Attribute Definition
Specify a value for an object/item for return by parameter or parameter of.
parameter is PAR_STRING
PAR_STRING
A string value representing the parameter of the object or item.
Description
Use this statement to specify a value for an object or item that can later be examined and returned by the parameter or parameter of built-in functions.
The parameter specification must appear within the object or item definition.
The parameter attribute does not affect the appearance of the object or item. It allows you to perform action statements based upon the specified parameter value.
If no parameter is specified, the default is the null string (" ").
Example
key Northeast at position 10 10
parameter is "Boston"
# This example uses a parameter and classes to respond to a
# dynamically created object.
enabled visible primary region PW
size 300 300
at position 20 20
size border
title bar "Primary Window"
system menu
class GRs
response to start
add
enabled visible red graphical region GR1
size 150 150
at 0 0
in PW
parameter is "Red"
add
enabled visible blue graphical region GR2
size 150 150
at 150 0
in PW
parameter is "Blue"
add
enabled visible green graphical region GR3
size 150 150
at 0 150
in PW
parameter is "Green"
add
enabled visible yellow graphical region GR4
size 150 150
at 150 150
in PW
parameter is "Yellow"
add GR1 to class GRs
add GR2 to class GRs
add GR3 to class GRs
add GR4 to class GRs
make GRs visible
action Red is
make GRs red
action Blue is
make GRs blue
action Green is
make GRs green
action Yellow is
make GRs yellow
response to GRs
action parameter