Showing results 1 to 2 of 2

Thread: Button visibility variable in vba

  1. #1
    Join Date
    01.10.2015
    Posts
    6

    Default Button visibility variable in vba

    Hi,

    I want to access the visibility variable of a button inside a simbol, but i always get a "Object doesn´t support this porperty or method" error.

    I have created a simbol with a text and a button. 
    In the button, the visibility button is set to "from variable", and the visibility variable prperty is set to "myStruct.Visibility".

    there is a a vba macro linked to the LeftClickDown event from the button and i have this code in the macro:
    Code:
    Dim varit As Variable
    Set varit = obElem.VisibilityVariable
    At this point is where i get the error.

    In the documentation is estated as available from VBA, and in the vba editor it can be chosen from the list to complete a sentence.

    What am i doing wrong?

    Thank you 

  • #2
    Join Date
    15.09.2016
    Posts
    59

    Default Re: Button visibility variable in vba

    Hi, I don´t really know what you want to do, but try this one.

    set varit = thisProject.Variables.Item(obElem.VisibilityVariab le.Name)

    But I don´t know if it works.

  • Similar Threads

    1. Replies: 7
      Last Post: 9th July 2014, 15:39
    2. Visibility depending on login user level
      By mjackson in forum zenon Supervisor
      Replies: 2
      Last Post: 25th March 2014, 12:49
    3. Button-Text aus Variable
      By jenny in forum zenon Supervisor
      Replies: 2
      Last Post: 28th February 2014, 08:05
    4. How to increment a variable on button press
      By matholton in forum zenon Supervisor
      Replies: 8
      Last Post: 24th September 2008, 12:51
    5. Button Visibility
      By madphilly in forum zenon Supervisor
      Replies: 1
      Last Post: 27th May 2008, 12:23

    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
    •