_AD_Open()
If $bDebug = True Then _GUI() ; run gui if debug mode is true
_Format($sCSV) ; format csv file
For $i = 0 To UBound($aInput) - 1 ; run broker loop
If $bDebug = True Then $iBarCount = 0 ; reset main progress bar back to zero
_Broker()
If $bDebug = True Then
$iStep += 100 / (UBound($aInput, 1) - 1) ; step progress bar each loop by number of rows divided by 100
GUICtrlSetData($hBulkBar, $iStep)
EndIf
Next
_AD_Close()
I'm not sure why. It's just a simple loop but it will start a