CHanging Object properties from a different chart

 

Hello. I am trying to change the text property of an object in a another chart but I don't know why it does not work.

The following script is unable to set a new string:

if ( ObjectSetString(131552086461923216, "testLabel", OBJPROP_TEXT, "message") )
        Print("message updated with success");
else    Print("Error: message not updated");
        
ChartRedraw( 131552086461923216 );

Any ideas how this works? Thanks

 
Fernando Morales:

Hello. I am trying to change the text property of an object in a another chart but I don't know why it does not work.

The following script is unable to set a new string:

Any ideas how this works? Thanks

I see nothing wrong with your code, so you should check that the chart id you use corresponds to an actual chart, and object "testLabel" exists.

Reason: