Results 1 to 5 of 5

Thread: Calling Module Sub Routine [resolved]

  1. #1

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    Resolved 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:
    VB Code:
    1. Call RoutineName
    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:
    1. Call RoutineName1 vbModal
    2. Call RoutineName2 vbModal
    3. 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


    -Matthew-

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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 ...

  3. #3
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    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.

  5. #5

    Thread Starter
    Fanatic Member mateo107's Avatar
    Join Date
    Jan 2005
    Posts
    547

    Re: Calling Module Sub Routine

    Thanks all, thats what I thought, I just wanted to check :-)

    Have a great day all!


    -Matthew-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width