Re: Could someone show me an exemple of how to add a record to an AdoTable not link to a database plz
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 12/17/03
- Previous message: Lluis Olle: "Re: TADODataset VERY Slow With MS SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Dec 2003 20:08:49 -0600
MemTbl := TADODataset.Create(Self);
MemTbl.CursorLocation := clUseClient;
MemTbl.CursorType := ctDynamic;
//Add a string field
fld := TStringField.Create(MemTbl);
fld.Size := 10;
fld.FieldName := 'Field1';
fld.DisplayLabel := 'Field1';
fld.DataSet := MemTbl;
//Create table
MemTbl.CreateDataSet;
//Add Record
MemTbl.Append;
MemTbl.FieldbyName('Field1').asString := 'Hello';
MemTbl.Post;
>
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Previous message: Lluis Olle: "Re: TADODataset VERY Slow With MS SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]