Class PBESetAction

Object
  |
  +--PBEAction
        |
        +--PBESetAction

public class PBESetAction
extends PBEAction


Description:
PBESetAction sets an attribute to a value.

PBESetAction can be used in object and attribute events. When used in object events, the second parameter (destination) must be specified.


Event String Action Name:
set


Syntax:

set( value )

set( value, destination )


Parameters
value - This is the value the attribute should be set to.

destination - Specifies the destination attribute that should be set to the specified value. If destination is omitted, "set" must be used in an attribute event.


Examples:
 PBE:attributeEvent(
   "country",
   "type",
   "on:find,new:set('COUNTRY')");
 
This event causes the attribute "type" of object "country" to be set to "COUNTRY" before activation of the methods "find" and "new".

This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 258).


Fields inherited from class PBEAction
iParameters, iType, name, procName
 
Constructor Summary
PBESetAction()
           
 
Method Summary
 varchar parameters()
           
 
Methods inherited from class PBEAction
actionArguments, actionCall, actionParameters, attributeReference, callString, checkEvent, getObject, methodReference, nestedInput, objectReference, parameter, perform, performParameterCount, printPerform, tracePerform
 

Constructor Detail

PBESetAction

public PBESetAction()
Method Detail

parameters

public varchar parameters()
Overrides:
parameters in class PBEAction