Calling Module Sub Routine [resolved]
HI All,
I've got a VB6 program which is going to call a series of Public Sub Routines that I have in a Module. My question is this:
When I call these, I'd normally use: but I want to be able to call a few of these sequentially, one after the other, as they complete.
If I code my program like this, will it wait for one routine to finish to call the next?
VB Code:
Call RoutineName1 vbModal
Call RoutineName2 vbModal
Call RoutineName3 vbModal
Can I use vbModal with routines, like I do with forms?
Re: Calling Module Sub Routine
If all of those subs are executed from whitin one procedure then execution is sequential: RoutineName2 will not run until RoutineName1 is finished and so on ...
Re: Calling Module Sub Routine
No, but the second routine wouldn't execute until the first one finished, anyways. That's what modal does, and it's the same thing.
Re: Calling Module Sub Routine
Quote:
Originally Posted by mateo107
... Can I use vbModal with routines, like I do with forms?
If you need to load some form from any of your subroutines then you may pass vbModal (or boolean flag instead) as parameter and use it to load any particular form if business logic required to do so, otherwise it's quite useless.
Re: Calling Module Sub Routine
Thanks all, thats what I thought, I just wanted to check :-)
Have a great day all!