![]() | ![]() | Programming Guide |
Gets the value of a property from a service component or ActiveX control
char *sm_obj_get_property (int obj_id, char *prop);
obj_id- An integer handle that identifies the component whose property you want to get. The handle is returned through
sm_obj_createfor service components,sm_prop_idfor ActiveX controls.prop- The designated property. For indexed properties, use brackets to specify the occurrence.
COM, EJB
Client
- · The property's current value, returned as a string.
sm_obj_get_propertyretrieves property values from a service component or ActiveX control.Properties can be determined through the Axview utility for COM components, the Properties window for ActiveX controls, or the Component Interface window for service components.
#include <smuprapi.h>
{
id = sm_prop_id( "spinner" );
value = sm_obj_get_property ( id, "prop" );
}// For an indexed property:
{
id = sm_prop_id( "spinner" );
value = sm_obj_get_property ( id, "prop[5]" );
}