Showing results 1 to 6 of 6

Thread: VSTA read variable value's another project!

  1. #1
    Join Date
    30.09.2010
    Posts
    14

    Default VSTA read variable value's another project!

    Hello,

    I have made a function in VSTA who read variable value's from the project. Now will i read variable value's from another project in the same workspace whit another function.
    How can I do it?

    Thanks,

    DvG

  2. #2
    Join Date
    20.08.2009
    Posts
    293

    Default Re: VSTA read variable value's another project!

    Hi,

    should work with:

    this.Parent.Parent.Projects().Item("Projectname").Variables().Item("Variablename").get_Value(0)

    Regards,
    Bernhard

  3. #3
    Join Date
    30.09.2010
    Posts
    14

    Lächeln Re: VSTA read variable value's another project!

    Thanks

  4. #4
    locutus Gast

    Default AW: VSTA read variable value's another project!

    Hello,

    I whant to do just the same in a static methode(function), but there ist no "this" allowed?

    please help

  5. #5
    Join Date
    30.05.2007
    Location
    Salzburg
    Posts
    879

    Default Re: VSTA read variable value's another project!

    which language are you using? C# or VB.NET?

    C# -> this
    VB.NET -> me

  6. #6
    locutus Gast

    Default AW: VSTA read variable value's another project!

    hello,

    I am using C#

    I want to write a Class in VSTA, with static methodes, because I don't want to init the objekt, just use the Class-function

    I get the error:
    Keyword 'this' is not valid in a static property, static method, or static field initializer

    "this", is normally a pointer to the actual instance of the object, and so this makes no sense in a static methode?!

    also, I don't find a detail description for the zenon API, in VSTA Object browser I can see the methodes and propertys from zenonVSTAProxy6510, but without discription it is not so helpfull
    is there a full documentation of the API ?

    Stefan

Similar Threads

  1. Problem of VSTA after restore project
    By altera in forum VSTA
    Replies: 2
    Last Post: 22nd June 2010, 14:48
  2. Replies: 4
    Last Post: 21st June 2010, 07:12
  3. Read Real variables in VBA
    By joulz in forum VBA
    Replies: 4
    Last Post: 5th February 2009, 13:29
  4. Read dBase does not work
    By bjoerndavid in forum zenon Supervisor
    Replies: 3
    Last Post: 26th November 2007, 13:15

Posting Rules

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