Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 1st, 2008, 02:42 PM
driven2win driven2win is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Baton Rouge, LA
Posts: 48 driven2win User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 10 m 53 sec
Reputation Power: 2
Send a message via MSN to driven2win Send a message via Yahoo to driven2win
Can't run three processes at once?

Hi. I am working on an application that is supposed to process three different sets of files when their corrresponding tables are checked. They work just fine when individual boxes are checked but only first set of files are processed when more than one box is checked. Below is an example of how I have everythign set up:

procedure name
begin
if checkbox x checked then
begin
process files x
end

begin
if checkbox y checked then
process files y
end

begin
if checkbox z checked then
process files z
end
end

Thanks in Advance


Reply With Quote
  #2  
Old May 1st, 2008, 04:21 PM
driven2win driven2win is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Location: Baton Rouge, LA
Posts: 48 driven2win User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 10 m 53 sec
Reputation Power: 2
Send a message via MSN to driven2win Send a message via Yahoo to driven2win
3 begin-ends too many. Have a great day.

Reply With Quote
  #3  
Old May 1st, 2008, 04:23 PM
parasaur parasaur is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 8 parasaur User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 17 m 45 sec
Reputation Power: 0
The only way I could get it to work was to use 3 timers with a different instruction in each. This way I got 3 different message boxes opening up at the same time rather than one after another as would happen in your example.

Just remember to disable the timer after it's done its job though otherwise it will try to do it every second.

Also, you don't need the begin/end as you only have one instruction after the If, but it won't make any difference..

Reply With Quote
  #4  
Old May 1st, 2008, 11:09 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 810 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 5 h 46 m 49 sec
Reputation Power: 19
Code:
procedure name
begin
  if checkbox x checked then
  begin
    process files x
  end


  if checkbox y checked then
  begin
    process files y
  end

  if checkbox z checked then
  begin
    process files z
  end
end


Clive

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Can't run three processes at once?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT