i have a program that am working on that increments the progressbar by a certain value after a number of executions. the problem is the progressbar is not updated correctly but viewing the value passed to the progressbar through the debugger indicates that the incrementing value is passed correctly. Progressbar max value is set to 100.
Here is my Snippet
 function ParseasArray(Const sInput: String): TMyArray;
var
  iCount, iIncrement, iSizeofArray, iStepper, iPercenter, iTester,
    iHolder: Integer;
  dDoubleCalcVal: Double;
begin
  iIncrement := 1;
  iPercenter := 10;
  iHolder := 1;
  iSizeofArray := Trunc(Length(sInput) / 2);
  SetLength(result, iSizeofArray);
  for iCount := 1 to iSizeofArray do
  begin
    // do some work
    dDoubleCalcVal := (((iCount) / iSizeofArray));
    iStepper := Trunc(dDoubleCalcVal * 100);
    iTester := Trunc((iPercenter * iSizeofArray) / 100);
    if iCount = iTester then
    begin
      Form1.Indicator.Position := iStepper;
      inc(iPercenter, 10);
    end;
    inc(iIncrement, 2);
  end;
end;
My IDE Version
Delphi XE7 Update 1
Thanks.
