Showing results 1 to 2 of 2

Thread: [C#] Data types defined by user

  1. #1
    Join Date

    Frage [C#] Data types defined by user

    I defined data type editor (array, structure) TimeTicks with two fields (variables) of type String.
    Then, I created a new type of variable (TimeTicks) called myVar.
    How now access this variable from c #?

  2. #2
    Join Date

    Default Re: [C#] Data types defined by user

    Hi, the best way to learn the object model you visit a zenon programming training from Copa-Data :-)

    What do you want exactly. Access from editor or runtime?

    In C# you can read or write the variable in the runtime like this:

    zenOn.IVariable zVar;

    zVar = this.Variables().Item("TimeTicks[1].Time")

    string tmp = zVar.get_Value(0); //read

    zVar.set_Value(0,tmp); //write

    zVar = null;

    But you have only access if the variable are advised. You can advise the variable with a online container or the variable is on a open picture. Another way set the property "dde active". You find very usefull information in the online help from Editor under programming interface ->object model
    Last edited by m.parotat : 8th December 2015 at 23:09

Similar Threads

  1. Nested structured Data types
    By bsneddon in forum Drivers
    Replies: 5
    Last Post: 3rd April 2011, 23:23
  2. read-back user administration data by Transport
    By marchelo in forum zenon Supervisor
    Replies: 4
    Last Post: 20th June 2010, 23:49
  3. How to evaluate the user level a user has in the runtime?
    By markclemens in forum zenon Supervisor
    Replies: 0
    Last Post: 6th November 2007, 17:10

Posting Rules

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