Showing results 1 to 2 of 2

Thread: Write on DynProperties KlasseIdx GruppeIdx

  1. #1
    Join Date
    18.06.2014
    Posts
    1

    Default Write on DynProperties KlasseIdx GruppeIdx

    Hi,

    In VSTA I can read the property alarmclass/alarmgroup of a variable.
    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.
    Variables().Item("var1").Limits().Item(1).set_DynProperties("KlasseIdx", 1);
    Variables().Item("var1").Limits().Item(1).set_DynProperties("GruppeIdx", 1);
    Regards,
    Kürten

  2. #2
    Join Date
    20.08.2009
    Posts
    293

    Default Re: Write on DynProperties KlasseIdx GruppeIdx

    Hi,

    are you running this code in the Runtime?
    If yes - it won't work as these properties are read-only in the Runtime.

    Regards,
    Bernhard

Similar Threads

  1. Write a complete name of the user to string variable
    By navaneet in forum zenon Supervisor
    Replies: 2
    Last Post: 14th October 2013, 09:11
  2. Write value on login/out
    By dlamarche in forum zenon Supervisor
    Replies: 1
    Last Post: 6th September 2013, 00:31
  3. Can I write a DynProperties in Runtime?
    By fransiska in forum VBA
    Replies: 4
    Last Post: 29th August 2013, 04:51
  4. Replies: 1
    Last Post: 15th May 2013, 02:09
  5. Replies: 2
    Last Post: 22nd September 2011, 01:32

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •