First of all, you should specify that you are actually talking about a KiXforms script.

Secondly, you should also post the script you are talking about as the fragments are not really helpful.

I also do not see any clock referenced inside your script. I only see a counter being incremented.

Based on the insufficient info provided by you, I'd say that
code:
$prgStatus.Max = Ubound($FuncToExecute)+1
For Each $sFunction in $FuncToExecute
$prgStatus.Value = $prgStatus.Value+1
$nul = Execute($sFunction)
Sleep 1
Next

shound be sufficient for you.

Finally, please read the KiXforms Manual and the example scripts on http://www.kixforms.org as they do explain what the DoEvents loop does, namely process events happening withoin KiXforms.

[ 29. September 2003, 16:36: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.