Chapter Contents

Previous

Next
Critical Success Factor: _setValue

Critical Success Factor: _setValue



Assigns a value to a CSF

Inherited from Widget


Syntax
Details
Example

Syntax

CALL NOTIFY (csf-name, '_setValue', csf-value);

Argument Type Description
csf-value
N specifies the value to assign to the CSF


Details

If you want to use _setValue from the INIT section of the frame and you have set the data set name and the variable in the Attributes window, first clear the data set name and variable by calling _setDsname and _setDepVar with empty strings. If you fail to do this, the value for the CSF is retrieved from the data set. Note that this also applies to calls to _setValue prior to a call to _update.

INIT:
   call notify('csf', '_setDsname', '');
   call notify('csf', '_setDepVar', '');
   call notify('csf', '_setVALUE', 30);
return;
or
BUTTON:
   call notify('csf', '_setDsname', '');
   call notify('csf', '_setDepVar', '');
   call notify('csf', '_setValue', 25);
   call notify('csf', '_update');
return;


Example

The _setValue method changes the value of CSF1 from 1 to 100:

MAIN:
   do i = 1 to 100;
      csf = i;
         /* You can also use this line            */
         /* CALL NOTIFY('csf1','_setValue',i);  */
      refresh;
    end;
return;


Chapter Contents

Previous

Next

Top of Page

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