|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ![]() |
|
#2
|
|||
|
|||
|
3 begin-ends too many. Have a great day.
![]() |
|
#3
|
|||
|
|||
|
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.. |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Can't run three processes at once? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|