Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure TfmLogSpecLab.FormShow(Sender: TObject);
- var
- I: Integer;
- Name: String;
- begin
- inherited;
- for I := 10 to 35 do
- begin
- if (I <= cdsElements.RecordCount + 9) then
- begin
- Name := cdsElements.FieldByName('LAB_PARAM_ABBREV').AsString;
- grdData.Columns.Insert(I);
- grdData.Columns[I].Width := 30;
- grdData.Columns[I].Title.Caption := Name;
- grdData.Columns[I].FieldName := Name;
- cdsElements.Next;
- //ShowMessage(Name);
- end
- else
- break;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement