2 Replies - 236 Views - Last Post: 07 February 2012 - 04:59 PM Rate Topic: -----

Topic Sponsor:

#1 guyfromri  Icon User is offline

  • D.I.C Addict

Reputation: 40
  • View blog
  • Posts: 723
  • Joined: 16-September 09

Is it possible to run multiple subs at once?

Posted 07 February 2012 - 04:13 PM

Hey guys!!

I'm working on my program and I have 10 subs that grab 10 files and format them. Is it possible to run more than one sub at once? I tried to google it but there doesn't seem to be much available...

If anyone could just point me in the right direction, that would be awesome!!

Easy example -- I have 2 subs in a diff program -- one opens the db, purges the tables for new data and creates some temp files. The second picks the files, formats them and inserts into db then I run a third. Is it possible to run the first 2 at the same time..?


As always thanks in advance! :)

Is This A Good Question/Topic? 0
  • +

Replies To: Is it possible to run multiple subs at once?

#2 sela007  Icon User is offline

  • D.I.C Addict

Reputation: 67
  • View blog
  • Posts: 522
  • Joined: 21-December 11

Re: Is it possible to run multiple subs at once?

Posted 07 February 2012 - 04:48 PM

multiple sub at the same time? smells like multithreading :) link

This post has been edited by sela007: 07 February 2012 - 04:51 PM

Was This Post Helpful? 1
  • +
  • -

#3 m_wylie85  Icon User is online

  • D.I.C Addict
  • member icon

Reputation: 65
  • View blog
  • Posts: 661
  • Joined: 15-October 10

Re: Is it possible to run multiple subs at once?

Posted 07 February 2012 - 04:59 PM

Hi I don't know if this is what you are looking but if i want to run multiple processes at one i use multi-threading.

http://msdn.microsof...6(v=vs.71).aspx

This allows me for example to run two timer at the same time or run two different subs at the same time hope this helps
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1