TLama

Untitled

Feb 11th, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.34 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3.   I: Integer;
  4. begin
  5.   sgFloor.RowCount := adotSeats['Rows'] + 1;
  6.   sgFloor.ColCount := adotSeats['Seats_per_Row'] + 1;
  7.  
  8.   for I := 1 to sgFloor.ColCount - 1 do
  9.     sgFloor.Cells[I, 0] := IntToStr(I);
  10.   for I := 1 to sgFloor.RowCount - 1 do
  11.     sgFloor.Cells[0, I] := Chr(64 + I);
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment