Hello,
Sorry for my bad English.
What is the best way to show progress with a progressbar, when many tasks have to be done.
Some tasks has to be done in a specific order because later tasks have to use the results.
For example createDB has to be complete before tablefill is started.
I tried working with sleep(0), Wait for, but in all combinations i tested the progressbar is not responding correct.
1. The progressbar stays at 0% until all tasks are complete then changes to 100% and the screen was frozen between 0 an 100%
2 Or the progressbar moves forward, task by task but when de bar is at 100% some tasks are not yet complete.
Or task 4 is busy while task 5 is done and task 6 has an error because the result of task 4 is not yet complete.
Sorry for my bad English.
What is the best way to show progress with a progressbar, when many tasks have to be done.
Some tasks has to be done in a specific order because later tasks have to use the results.
For example createDB has to be complete before tablefill is started.
I tried working with sleep(0), Wait for, but in all combinations i tested the progressbar is not responding correct.
1. The progressbar stays at 0% until all tasks are complete then changes to 100% and the screen was frozen between 0 an 100%
2 Or the progressbar moves forward, task by task but when de bar is at 100% some tasks are not yet complete.
Or task 4 is busy while task 5 is done and task 6 has an error because the result of task 4 is not yet complete.
Tasks:
Sub CreateAndSendDBfile
ProgressbarStepReset
Wait for DeleteOldDBfile
Sleep(0)
ProgressbarStepPlus
Wait for CreateSQLiteDB
Sleep(0)
ProgressbarStepPlus
FillTable1
Sleep(0)
ProgressbarStepPlus
FillTable2
Sleep(0)
ProgressbarStepPlus
FillTable3
Sleep(0)
ProgressbarStepPlus
FillTable4
Sleep(0)
ProgressbarStepPlus
CompactDB
ProgressbarStepPlus
UploadDBFile
ProgressbarStepPlus
End sub