I don't think he is using more then one processes. That is I don't think he is having trouble passing data from one of his processes to another.
Basically, you define all your "user defined types" in a .BAS module. Or, you create a Class that will contain the data. Most likely you are not dealing with Classes in your program. So, just create a module called modTypes and put them in there as Public types. I normally create a few modules ever time I start a new program (whether I end up using them or not).
modTypes - Contains all my global types
modGlobs - Contains all my global variables
modConst - Contains all my Constants
modGenFuncs - Contains any general functions that I might use (not specific to this application).
modResource - Contains all the defines I might need to address my resource data.
In any case, put all your Public Type definitions inside of modTypes. Then put your Public global variables inside of modGlobs. Remember you can't pass a user defined type between forms, so sometimes you need to have temporary global locations to store your data (kind of simulate passing types between forms by useing a global variable). I am not sure why Microsoft doesn't allow such a useful thing, but they don't.
Hope that helps.
Main Topics
Browse All Topics





by: ImbuePosted on 2004-08-20 at 17:07:55ID: 11857077
Try this.
File > Add project > ActiveX DLL
In this new project put your UDT in the class module. Make sure you make it public. (Public Type udtWhatever)
Now go back to your first project (Standard EXE) and go to Project > References. Check the name of the second project. Now you should be able to pass those UDTs back and forth all over the place.