Chapter Contents

Previous

Next
Object Class: _setAttributeValue

Object Class: _setAttributeValue



Sets the value for a specific attribute on an object


Syntax
Details

Syntax

return = objectName._setAttributeValue( );


Details

When _setAttributeValue executes, it performs the following sequence of actions:

  1. Determines if requested attribute is defined; returns 2 if attribute is undefined and processing ends.

  2. Determines if value matches the attribute's type; returns 3 if it does not match and processing ends.

  3. Determines value of attribute metadata item EDITABLE; returns 5 if 'No' and processing ends.

  4. If attribute has a specified VALIDVALUES item, determines whether value is found in list (or specified SLIST entry) or executes the SCL entry defined for VALIDVALUES; returns 4 if value is not in VALIDVALUES.

    Processing continues to setCAM.

  5. Executes setCAM if one is defined for the attribute; returns 7 if the CAM cannot execute, otherwise returns the value returned from the CAM.

  6. Sets the value for the attribute.

  7. Refreshes the region if object is a visual control.

  8. If attribute metadata item SENDEVENT='Yes', _setAttributeValue:

If you add a setCAM to an attribute, _setAttributeValue returns the return value from your CAM as the value for rc.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.