Excuse me for using BI and BM file names but there are TWO KINDS of include files and each needs to go in the right place in the main module.
So for communication convention we say the .BI file for the include file that goes at beginning of main module to hold all constants, UDT and Shared variables used in the 2nd type of include file the .BM that goes at the end of the main module and contains only Subs and Functions.
Tell me something, does a Dim Shared in Main Mod reach into an Included .BM file the one with the sub and function routines normally put at the end of Main mod and update Variable types as commanded in the main module?
I think not.
I think in the include file, if you want a shared varaible to act as string, you have to have an Include .bi file with that instruction added and to include that .bi file in main module at the beginning of it.
So for communication convention we say the .BI file for the include file that goes at beginning of main module to hold all constants, UDT and Shared variables used in the 2nd type of include file the .BM that goes at the end of the main module and contains only Subs and Functions.
Tell me something, does a Dim Shared in Main Mod reach into an Included .BM file the one with the sub and function routines normally put at the end of Main mod and update Variable types as commanded in the main module?
I think not.
I think in the include file, if you want a shared varaible to act as string, you have to have an Include .bi file with that instruction added and to include that .bi file in main module at the beginning of it.
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever

