Showing results 1 to 2 of 2

Thread: thisProject

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    17.07.2019
    Posts
    2

    Default thisProject

    Hi all,

    I´ve got just a short question:

    What is the role of ´thisProject´in Zenon VBA editor? What is the main difference between moduls and Zenrt32 Objects?
    I didn´t find anything about it.

    Thank you!

     
    Attached Thumbnails Attached Thumbnails Capture.PNG  

  2. #2
    Join Date
    25.06.2012
    Posts
    155

    Default Re: thisProject

    Dear adamnadasi,

    Welcome to COPA-DATA forum.

    Macros which should be executed in the zenon runtime (zenrt32.exe) must be programmed in thisProject file (@Zenrt32_Objects folder). These macros are used to help the operator with extended functions in the runtime.

    Code Modules contain macros and functions that run when called from other macros/classes (e.g. ThisProject, Modules, etc.). They are used to organize the code and macros in organizational folders. It is possible to add new Modules as needed to a project to organize and run the code.

    For example, when adding a new macro in the Macro List (Project -> Programming Interfaces > Macro List > Module*) a new module is automatically created in the VBA project -  this will be called automatically in the runtime when required. Self-made modules can also be added to the VBA project by right-clicking on the VBA Editor project tree (Insert option).

    Good luck.

    Best regards,
    David Cerdeira

Similar Threads

  1. Replies: 2
    Last Post: 18th May 2017, 16:44
  2. Eventhandler for thisProject
    By tulon in forum VSTA
    Replies: 0
    Last Post: 11th March 2010, 15:46
  3. Replies: 5
    Last Post: 28th November 2008, 10:49

Posting Rules

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