Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3791

How to define a module global variable

$
0
0

I’m lost on how to add a global variable to a method. I’m not using classes or properties. Coming from a VB6 background I’m used to having a module and placing code at the module level. Not within a procedure within the module. After creating a module, I can’t add code to it. I have to create a method to do that.

For example, I want to define these arrays at a window module level and allow access to any code within the window module. For a control on the window, any of the control events should be able to use the window level variable.

Var m1(1,1) As Integer
Var m2(1,1) As Integer
Var ResultMatrix(1,1) As Integer

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3791

Trending Articles