Doug, I forgot to mention, yes, place both programs into the same VB project.
Be sure to tell VB which one is being loaded first, such as the realtime loop
program, or the modDB form.
If it is the realtime loop program, then before the real time loop starts, be
sure to issue the Show command in reverse sequence so that the last screen
"shown" is the first one on top such as:
frmCTCprog.Show
frmmodDB.Show
This will cause the form associated with the modDB to be displayed last, and
therefore, on top of the CTC program screen.
If your modDB is the first screen loaded, then be sure to place these two SHOW
commands into the top of the coding section of your modDB before any other
coding starts.
But you arrange them the way you want.
Bill Carr
--- In CMRI_Users@yahoogroups.com, "Doug Ellis" <dabear1@...> wrote:
>
> Hey Guys,
> I am needing to throw a couple of questions out there and see what answers
I get.
> I have written a CTC program which the graphics are done and am getting
ready to add the SPSVBM.Bas to my coding. As I understand this coding runs in a
loop all the time, constantly checking the I/O to & from the railroad. Now, I
have a modDB.Bas that I am already using for coding that controls the switches
and reverse or Normal, signals and their colors, database coding, and an on
screen fast clock.
> My questions are:
>
> 1. Will adding the SPSVBM.Bas as another .Bas file affect the operation of my
current .Bas file???
> 2. Should I combine the SPSVBM.Bas into my modDB.Bas file??
> 3. If I combine them, will it affect any of what is going on in my modDB.Bas
file???
> I know this might be a little confusing, but I can not explain it any
better.
>
> Doug
>