TadvStringGrid.RemoveRows

TadvStringGrid Ver 7.3.0.0.

Is this a bug ?

srgPASItems.RemoveRows[1, 1];
 
when compiling ...[dcc32 Error] PAS.pas(916): E2035 Not enough actual parameters



Regards


Flavius

We have retested this with our latest version
but we could not see such problem here.
Could you please provide some sample source project with which we can reproduce this here ?


I have a TAdvStringGrid srgPASitems and I want to delete a row when a certain condition is filled.
If I {rem} out line 5  , I can compile ok, if I dont I get ;


[dcc32 Error] POSHotel.pas(1069): E2035 Not enough actual parameters
[dcc32 Error] POSHotel.pas(1069): E2016 Array type required
Note Line 1069 is line 5 below;


Var
   iStockNo, nPosItemRow: Integer;

    { Remove item from srgPASitems }

  1.    for nPosItemRow := srgPASitems.FixedRows to srgPASItems.RowCount - 1 do
  2.     begin
  3.       if srgPASItems.Ints[1, nPosItemRow] = iStockNo then
  4.       begin
  5.          srgPASItems.RemoveRows[nPosItemRow, 1];
  6.       end;
  7.     end;
    Hope this helps

Regards


Flavius

Sorry, found out

      srgPOSItems.RemoveRows(1,1);

not

      srgPOSItems.RemoveRows[1,1];