Fórum Criar campos em runtime no ClientDataSet #275425
04/04/2005
0
Preciso criar vários campos em runtime no ClientDataSet, como faço?
Biohazard
Curtir tópico
+ 0
Responder
Posts
04/04/2005
Kotho
Eu uso assim:
ClientDataSet1 := TCustomClientDataSet.Create(Self); with ClientDataSet1 do begin with FieldDefs.AddFieldDef do begin DataType := ftString; Name := ´Campo´; end; with FieldDefs.AddFieldDef do begin DataType := ftString; Name := ´Valor´; end; CreateDataSet; end;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)