Advertisement
Vanya_Shestakov

StringGrid

Oct 31st, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. procedure TForm1.Button1Click(Sender: TObject);
  2. var
  3. Length: Integer;
  4. begin
  5. StringGrid1.Visible := True;
  6. Length := StrToInt(Edit1.Text);
  7. StringGrid1.ColCount := Length;
  8. StringGrid1.RowCount := Length;
  9. StringGrid1.FixedCols := 0;
  10. StringGrid1.FixedRows := 0;
  11. StringGrid1.Width := 40 * Length;
  12. StringGrid1.Height := 40 * Length;
  13.  
  14.  
  15. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement