Probably not. I'm not really sure which is best to be honest. I guess the only gain of doing it this way (and something I was interested in) is having a totally portable SUB that's easily pasted to the end of other programs, without having to stick stuff in the main code area too. I think I will do a test to see if there's a speed increase with sharing it outside the sub.
(EDIT: Speed wise there doesn't seem to be a difference between DIM SHARED handle and all SUB method)
- Dav
(EDIT: Speed wise there doesn't seem to be a difference between DIM SHARED handle and all SUB method)
- Dav