wildzero
asked on
Alter structure of TCientDataSet
Hi there,
I got a TClientDataSet, and I want to add another column to the table.
I tried doing this
fDB : TClientDataSet;
{ .. }
fDB.Close;
fDB.FieldDefs.Add('TypeRes ult', ftMemo, 0, false);
fDB.CreateDataSet;
But it blows away all my current data....
How can I add another column to the dataset without losing all the current info?
I got a TClientDataSet, and I want to add another column to the table.
I tried doing this
fDB : TClientDataSet;
{ .. }
fDB.Close;
fDB.FieldDefs.Add('TypeRes
fDB.CreateDataSet;
But it blows away all my current data....
How can I add another column to the dataset without losing all the current info?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Create a new TClientDataSet and move the data over.
:-/