S
Steve
Hello,
Is it possible to call a sub routine from 2 different
threads at the same time? Or should I create a class
containing this sub and instantiate the class for each
thread? The sub pulls data from different data sources
but the same structure. Right now I have 2 separate forms
with the same sub. If I call both forms from the 2
threads I can pull the data faster than calling the sub
for datasource1 and then calling the sub for datasoruce2.
So, right now I call 2 different class modules (2
different forms). Even if I have to go the class route, I
am hoping I could have one class that I could instantiate
with the various parameters. Or, if it is possible to
just invoke the sub without the class, that would be the
simplest. Any suggestions appreciated.
Thanks,
Steve
Is it possible to call a sub routine from 2 different
threads at the same time? Or should I create a class
containing this sub and instantiate the class for each
thread? The sub pulls data from different data sources
but the same structure. Right now I have 2 separate forms
with the same sub. If I call both forms from the 2
threads I can pull the data faster than calling the sub
for datasource1 and then calling the sub for datasoruce2.
So, right now I call 2 different class modules (2
different forms). Even if I have to go the class route, I
am hoping I could have one class that I could instantiate
with the various parameters. Or, if it is possible to
just invoke the sub without the class, that would be the
simplest. Any suggestions appreciated.
Thanks,
Steve