When you use OLE controls in a SAS/AF application, you can access the properties of the control
programmatically. Also, an OLE control might not expose all of its
properties in a properties page. You can access the properties of
a control by using the _SET_PROPERTY_ and _GET_PROPERTY_ methods.
Before you can access
a property, you must know:
-
the object label of the OLE control in your SAS/AF FRAME entry
-
the name of the property that you
want to access
-
the type of data that the property
holds.
For example, suppose
you have a combo box control named
sascombo
in
your FRAME entry, and you want to set the list style to
simple
(represented
by the integer 1):
call notify ('sascombo', '_set_property_',
'Style', 1);
If you want to retrieve
data from a property, you must use a variable that is of the same
type as the data that you want to read. For example, if you want
to learn what text the user specified in the edit portion of a combo
box, include the following code:
length text $ 200;
call notify ('sascombo', '_get_property_',
'Text', text);