Write on DynProperties KlasseIdx GruppeIdx

Write on DynProperties KlasseIdx GruppeIdx

Hi,
In VSTA I can read the property alarmclass/alarmgroup of a variable.
C# Code:
int ClassId = Convert.ToInt32(Variables().Item("var1").Limits().Item(1).get_DynProperties("KlasseIdx"));
int GroupId = Convert.ToInt32(Variables().Item("var1").Limits().Item(1).get_DynProperties("GruppeIdx"));

To write the property has no influence. The value stays the same.
C# Code:
Variables().Item("var1").Limits().Item(1).set_DynProperties("KlasseIdx", 1);
Variables().Item("var1").Limits().Item(1).set_DynProperties("GruppeIdx", 1);


This is a migrated post! Originally posted on 08.07.2014 by user kurten. Please be aware that information can be outdated.