Showing results 1 to 2 of 2

Thread: Limits in VSTA in ZenOn editor

  1. #1
    Join Date
    07.07.2010
    Posts
    9

    Default Limits in VSTA in ZenOn editor

    I want to count all limit of a internal variable with the following code :

    public void MacroChangeVar()
            {
                int Test;
    
                Test = this.ActiveDocument.Variables().Item("TestVariable").Limits().Count;
    
                System.Windows.Forms.MessageBox.Show(Test.ToString());
            }

    But the return value of the function is Nothing.

    The variable has 3 limits but i can't read these count value.

    Can you give me an example how i can read out this count value.

    Other properties/functions like this.ActiveDocument.Variables().Item("TestVariable").Tagname = "This is a test variable"; work very good.

  2. #2
    Join Date
    20.08.2009
    Posts
    293

    Default Re: Limits in VSTA in ZenOn editor

    Hi,

    you need to use this.ActiveDocument.Variables().Item("TestVariable").EdLimitCount() instead.

    Regards,
    Bernhard

Similar Threads

  1. Replies: 5
    Last Post: 30th July 2018, 10:45
  2. Error while loading the VSTA editor-addin
    By jjplaw in forum zenon Supervisor
    Replies: 1
    Last Post: 24th August 2011, 07:35
  3. Replies: 1
    Last Post: 31st January 2011, 15:23
  4. Limits
    By allmendinger in forum zenon Supervisor
    Replies: 1
    Last Post: 26th September 2008, 10:04
  5. Replies: 0
    Last Post: 20th August 2007, 17:04

Posting Rules

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