|
-
May 3rd, 2005, 07:17 PM
#1
Thread Starter
Fanatic Member
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?
Last edited by mateo107; May 3rd, 2005 at 07:34 PM.
Reason: resolved
-
May 3rd, 2005, 07:21 PM
#2
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 ...
-
May 3rd, 2005, 07:22 PM
#3
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.
-
May 3rd, 2005, 07:25 PM
#4
Re: Calling Module Sub Routine
 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.
-
May 3rd, 2005, 07:33 PM
#5
Thread Starter
Fanatic Member
Re: Calling Module Sub Routine
Thanks all, thats what I thought, I just wanted to check :-)
Have a great day all!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|