We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Variable In One Tab Cannot be accessed from another tab

Home Forums Puzzles Variable In One Tab Cannot be accessed from another tab

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47288
    grimmy
    Customer

    IN the manual it say that

    ‘All tabs share the same namespace, so you can define procedures or variables in one tab and use them in another.’

    However, I have a variable (create empty list ) in my init tab but then in another tab when I try to insert objects into the list I get the error:

    VM7592:1074 Uncaught TypeError: Cannot read properties of undefined (reading ‘push’)

    ..as if the list cant be accessed from a different tab. Is this correct behaviour?

    #47315

    I think the init tab is special – it does not share the namespace with the rest of the tabs. You might initialize your variable in the main tab instead.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.