11.07.2015 Views

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

Upgrade Guide - Prolifics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

sm_com_get_propGets the value of a property from a COM componentchar *sm_com_get_prop(int obj_id, char *prop);obj_idpropAn integer handle that identifies the COM component whose property youwant to get. The handle is returned through sm_com_obj_create for COMobjects, sm_prop_id for ActiveX controls.The designated COM property. For indexed properties, use brackets tospecify the occurrence.EnvironmentScopeWindows, WebClientReturns ! The property's current value, returned as a string.! A null string if an error occurred. For the error code, call sm_com_result.Error codes are defined in winerror.h.DescriptionExamplesm_com_get_prop retrieves property values from a COM component. Usage of thisfunction is no longer recommended; use sm_obj_get_property instead to ensurecomponent portability.#include {id = sm_prop_id( "spinner" );value = sm_com_get_prop ( id, "prop" );}// For an indexed property:{id = sm_prop_id( "spinner" );value = sm_com_get_prop ( id, "prop[5]" );}See Alsosm_obj_get_property<strong>Upgrade</strong> <strong>Guide</strong> C-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!