Hello,
I would like to have a 2 dimensions array available as a global variable / array available anywhere in any method of my App.
How could I do this?
I run 217R3 release on Mac for a desktop app.
Thanks a lot for your help.
Hello,
I would like to have a 2 dimensions array available as a global variable / array available anywhere in any method of my App.
How could I do this?
I run 217R3 release on Mac for a desktop app.
Thanks a lot for your help.
Create a module with a property, in the property name put MyVar(-1,-1) if you want to redim it to a size in your code or MyVar(10,10) if you want to specify the size at declaration time.
Houch… Sorry… Not sure to really understand what you say…
Creating a module in order to just define a global 2 dimensions array?
Whatever is inside a Module is accessible from anywhere (i.e. global).
You could add the MyVar(-1,-1) property to your App if you wanted but then you would have to call App.MyVar everywhere instead of just MyVar.
u r my hero!
It works perfectly.
Thanks a lot & have a nice day.
I’d question you project layout if you didn’t have at LEAST one module.
I have created one module in my project just for this as proposed by Julian.
My project is just an internal tool.
Fast done & not very well coded ( error management is currently not in place ) but already it’s so useful…