Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Dynamic DataSet Problem
Sat, Apr 16 2016 12:28 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Wood for the trees moment, but I need to dynamically create a dataset inside a class. Extracted code :

var
  dc : TDataColumn;
  dcList : TDataSets;
  Clients : TDataSet;

begin
  dc:=TDataColumn.Create;
  dcList := TDataSets.Create;
  Clients := TDataSet.Create;
  Clients.Name := 'dsClients';
  Clients.DataSetName := 'dsClients';

  dc.Name        := 'id';
  dc.DataType    := dtInteger;
  dc.Calculated  := False;
  dc.Length      := -1;
  dc.Scale       := -1;
  dc.ReadOnly    := False;

How do I now add "dc" (and the many others I need to create) to the data set? I just can't get my head around it.

Thanks.
Sat, Apr 16 2016 12:30 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Argh!
For the love of Pete ...

Ok, I forgot that the online help is more up to date than the embedded help or the PDF. I can see examples there.

I'll follow those. Sorry.
Sat, Apr 16 2016 1:04 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Might as well post the link for completeness in case it helps anyone else save the 4 hours I just spent trying to work it out :

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Creating_Loading_DataSets
Mon, Apr 18 2016 10:28 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Ok, I forgot that the online help is more up to date than the embedded help or the PDF. I can see examples there. >>

That is definitely not the case, at least not for anything major.  There are some spelling corrections in there, but that's about it.

Tim Young
Elevate Software
www.elevatesoft.com
Image