Showing results 1 to 2 of 2

Thread: Rename variable based on structure datatype in editor wizard

  1. #1
    Join Date
    25.06.2013
    Posts
    1

    Frage Rename variable based on structure datatype in editor wizard

    Hello,

    Is it possible to rename variables based on structure datatypes by using the addin-framework?
    Simple datatypes like i.e. bool is working, but when retrieving all variables I only get the subvariables from the structures. These cannot be renamed of course.

    In other words I need to get a list of all variables based on structure datatypes without the structure element variables.

    For now I have solved this in the project SQL tables. But I prefer to do it outside the database with the API.
    Last edited by bartsmets : 3rd August 2019 at 09:47

  2. #2
    Join Date
    23.11.2016
    Posts
    10

    Default Re: Rename variable based on structure datatype in editor wizard

    Hello bartsmets,
     
    If I am understanding you correctly you want to rename a structure variable and all sub elements.
    I tried this with the following variable setup:



    With directly accessing the root-element of the structure it is possible to reaname the structure.



    After executing the code above the variables should be renamed like this:

     
    I hope that helps!

    Attached Thumbnails Attached Thumbnails forum1.png   forum2.png   forum3.png  

Similar Threads

  1. Rename Variables from VBA Wizard
    By yolovs in forum VBA
    Replies: 1
    Last Post: 10th April 2017, 10:01
  2. Editing structure datatype
    By yolovs in forum zenon Supervisor
    Replies: 2
    Last Post: 8th July 2013, 14:22
  3. Replies: 1
    Last Post: 13th March 2012, 12:13
  4. Different drivers in one structure datatype
    By stolyarov_as in forum zenon Supervisor
    Replies: 2
    Last Post: 13th December 2011, 08:30
  5. Program access to structure datatype variables
    By stolyarov_as in forum VBA
    Replies: 2
    Last Post: 8th August 2011, 14:21

Tags for this Thread

Posting Rules

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