[Moderatror (Sealeopard): Moved thread from 'Scripts' to 'COM' forum]

Friends had indicated me so that the clock is counting, to use this code:

code:
 while $frmMain.Visible 
$_ = execute($frmMain.DoEvents)
loop

This is my code of execution of the functions:

code:
 $prgStatus.Max = Ubound($FuncToExecute)+1 
For Each $sFunction in $FuncToExecute
$prgStatus.Value = $prgStatus.Value+1
$nul = Execute($sFunction)
Sleep 1
Next

But if I to use the two codes, the clock is counting and the functions are stops until finishing the counting it clock.

If I to inside place the line

code:
 $_ = execute($frmMain.DoEvents) 

in my code

code:
 $prgStatus.Max = Ubound($FuncToExecute)+1 
For Each $sFunction in $FuncToExecute
$prgStatus.Value = $prgStatus.Value+1
$nul = Execute($sFunction)
$_ = execute($frmMain.DoEvents)
Sleep 1
Next

the clock starts to count until being executed the first function. The clock stop until being executed the function, later the clock continue and stop again to be executed the second function. This happens until being executed all the functions.

How I can make so that a clock is counting together on the execution of the functions in a form?

[ 29. September 2003, 23:33: Message edited by: sealeopard ]