|
@@ -716,6 +716,12 @@ var
|
|
|
eot: boolean;
|
|
|
begin
|
|
|
eot := False;
|
|
|
+ i := StringGrid1.RowCount-1;
|
|
|
+ if (i >= (sps.getE2E())) then
|
|
|
+ begin
|
|
|
+ LSUAutoMsgBox('Messages', 'ID_PRG_TO_LONG', MB_OK + MB_ICONERROR);
|
|
|
+ exit;
|
|
|
+ end;
|
|
|
myPos := StringGrid1.Row;
|
|
|
if (myPos = StringGrid1.RowCount - 1) then
|
|
|
eot := True;
|
|
@@ -740,7 +746,14 @@ end;
|
|
|
procedure TForm1.acNextInsertExecute(Sender: TObject);
|
|
|
var
|
|
|
myPos: integer;
|
|
|
+ i : integer;
|
|
|
begin
|
|
|
+ i := StringGrid1.RowCount-1;
|
|
|
+ if (i >= (sps.getE2E())) then
|
|
|
+ begin
|
|
|
+ LSUAutoMsgBox('Messages', 'ID_PRG_TO_LONG', MB_OK + MB_ICONERROR);
|
|
|
+ exit;
|
|
|
+ end;
|
|
|
myPos := StringGrid1.Row;
|
|
|
if (myPos = StringGrid1.RowCount - 1) then
|
|
|
acNewRow.Execute;
|
|
@@ -1503,9 +1516,11 @@ begin
|
|
|
Value := trim(Value);
|
|
|
if (Value <> '') then
|
|
|
begin
|
|
|
- setDirty(True);
|
|
|
- StringGrid1.RowCount := StringGrid1.RowCount + 1;
|
|
|
- renumberGrid();
|
|
|
+ if StringGrid1.RowCount <= sps.getE2E() then begin
|
|
|
+ setDirty(True);
|
|
|
+ StringGrid1.RowCount := StringGrid1.RowCount + 1;
|
|
|
+ renumberGrid();
|
|
|
+ end;
|
|
|
end;
|
|
|
end
|
|
|
else
|