Get the parameter value of the current GDL element. Applies to objects.

Call:

int iret = ac_request("get_object_property_value",string parametername);


The result of the call is read by the following function ac_getnumvalue() or ac_getstrvalue() - to obtain a numeric or text value, respectively.

Returns in iret 0- if the request was successful.

Example.

Get the value of the "SNAME" text parameter from the current object.


int iret = ac_request("get_object_property_value","SNAME");
string svalue;
if(iret == 0)
{
   svalue = ac_getstrvalue();
   cout << svalue;   // write the received value in the message box
}