Hello,
I'm messing around with some code which I put in a sub routine.
Everything worked fine that way.
Now I was thinking ahead about larger projects and thought about reorganising my file a bit so that panel routines and other stuff were placed into their own modules seperated from my main code, just to be prepared so to say.
Here is where I ran into trouble...
I thought code modules were like the good old include files but apparently they aren't since we can't even "reach" the views from in a coding module?
another option is the class module, this required some rewriting until my source finally compiled. But when I run it I get an error that a listview is not initialised altho it's Dim'ed in the class globals.
So I'm wondering which solution I need here to get this subroutine working that just fills a listview with some data (and maybe can access a main variable)
I'm messing around with some code which I put in a sub routine.
Everything worked fine that way.
Now I was thinking ahead about larger projects and thought about reorganising my file a bit so that panel routines and other stuff were placed into their own modules seperated from my main code, just to be prepared so to say.
Here is where I ran into trouble...
I thought code modules were like the good old include files but apparently they aren't since we can't even "reach" the views from in a coding module?
another option is the class module, this required some rewriting until my source finally compiled. But when I run it I get an error that a listview is not initialised altho it's Dim'ed in the class globals.
So I'm wondering which solution I need here to get this subroutine working that just fills a listview with some data (and maybe can access a main variable)