Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1.  
  2. procedure TMain.Delete1Click(Sender: TObject);
  3. Var
  4. i:integer;
  5. begin
  6. If Nonelbl.Caption <> '' then
  7. begin
  8. ActRow:=StrToInt(Nonelbl.Caption);
  9. if (ActRow = ListSg.RowCount - 1) and (ActRow <> 0) then
  10. begin
  11. ListSg.RowCount:=ListSg.RowCount-1 ;
  12. FillChar(Part[ActRow -1], SizeOf(TPart), 0);
  13. end
  14. else
  15. if (ActRow <> 0) then
  16. begin
  17. for i := ActRow to ListSg.RowCount -1 do
  18. ListSg.Rows[i] := Listsg.Rows[i+1];
  19. ListSg.RowCount:=ListSg.RowCount-1;
  20. FillChar(Part[ActRow-1], SizeOf(TPart), 0);
  21. end;
  22. Nonelbl.Caption:='';
  23. end
  24. else
  25. ShowMessage('Choose the cell');
  26. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement