Kbase 16455: Using Global Variables with Smart Objects ( attribute lists)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Using Global Variables with Smart Objects ( attribute lists)
It is possible to use set-attribute-list with the adm-broker-handle,
to store global variables to be used with Smart Objects.
For Example:
RUN set-attribute-list IN adm-broker-hdl ('universal-truth = yes':U).
...then this value is available to all SmartObjects through
RUN get-attribute IN adm-broker-hdl ('Universal-Truth':U).
IF RETURN-VALUE = "YES":U THEN...
So this is an effective way to store "global" values in a place where
all SmartObjects can get at them. Such values could include the
handles of other SmartObjects where an Object could then
RUN get-attribute again or dispatch an event procedure etc.
Progress Software Technical Support Note # 16455