Just reporting back -- I have now modularized the whole shebang, and it has
gone from being a monster to being "my friend". I have finally been able to
see clearly where the problems exist, and, at the same time know that certain
modules work just fine and can be left untouched.
One tiny question -- I followed your example to the letter, hence..
Public Sub doInits(byref A as long, byref B as string)
...I copied the "Public", and identified all parameters as "ByRef". (FWIW I
also finally found where the "Name" Window was hiding so I could rename the
modules). Should I always use all those components ("Public", "ByRef") or are
there times when one or other could be dropped. Also, if I add some Dims in
the sub-process, do they exist as Local only, and expire on exit from the
module? IOW, if it aquires a value of, say, 100 the first time I visit the
sub-process, when I come back again it will be uninitialized, right?
One thing I learned the hard way is that the parameters MUST be in the same
order "going" and "coming", Heck, I should have know that -- it is the way
parms work in all languages.