I created a module called 'cpu', it has a type called TIME_IN_STATE. It's just 2 integers.
I call cpu.GetStates wich returns TIME_IN_STATE()
from the main module I can't do this:
dim x as cpu.TIME_IN_STATE, I have to copy and paste the type declaration to the main activity to get it to work. Not sure if it's just me but I feel like i'm doing something wrong, maybe I don't know something, by having to declare the same thing twice, possibly more times if I add other activities that use it.
any ideas? since I can't use classes, this is the next best thing to keep this app maintainable and clean. I just want to make a code module that I can easily copy and paste between projects without having to re-declare a bunch of types. Right now I have about 10 subs in that one module, but I'm going to have hundreds after I build the full library.
I call cpu.GetStates wich returns TIME_IN_STATE()
from the main module I can't do this:
dim x as cpu.TIME_IN_STATE, I have to copy and paste the type declaration to the main activity to get it to work. Not sure if it's just me but I feel like i'm doing something wrong, maybe I don't know something, by having to declare the same thing twice, possibly more times if I add other activities that use it.
any ideas? since I can't use classes, this is the next best thing to keep this app maintainable and clean. I just want to make a code module that I can easily copy and paste between projects without having to re-declare a bunch of types. Right now I have about 10 subs in that one module, but I'm going to have hundreds after I build the full library.