Look up table in VB 2005 program

I am just blank on Where/How to add a look up table in a program. I just need to add a PUBLIC array of values that can be seen from many places in the project.
Dim Myvalues(10,10,10) as integer
I can delare it in each procedure, but I would be re-dim and load the values it each time the procedure is called, that seems time consumming and akward.
Can I put in the class as a field Put it in the Sub main() of the class...
I know this is easy, I just don't see the trees for the forest.
Thanks in advance
Dave



Answer this question

Look up table in VB 2005 program

  • Taoufik

    OK, got it thanks much, just needed a direction...
    Dave

  • xpding

    Add a module to your project.

    Module main

    Public MyValues(10,10,10) as integer

    End Module




  • Look up table in VB 2005 program