Again: How to copy a memo
- From: "Willi Kühnis" <wkuehnis@xxxxxxxxxx>
- Date: Wed, 25 May 2005 09:48:22 +0200
Hi,
yesterday, I got some tipps, how to copy a memo (ADO,D7)
I tried a lot now, but it still don't work.
When I post, then I get a exception. (when I don't post, then the value is
not saved)
Question: with which AdoComponent can I change a field with assign ?
TADOQuery or TADODataset ?
Thanks
Willi
dsShop := tAdoDataSet.create(Application);
dsShop.Connection := pShopADOConn;
dsShop.CommandText := 'Select Mess from MessO where Nummer=' +
inttostr(NummerArr[ii]) ;
dsShop.Open;
//
dsZent := tAdoDataset.create(Application);
dsZent.Connection := pConnZentRW;
dsZent.CommandText := 'Select Mess from MessZwisch where
Nummer=' + inttostr(NewNum) ;
dsZent.Open;
//
dsZent.Edit;
dsZent.FieldByName('Mess').assign(dsShop.FieldByName('Mess'));
if dsZent.State in [dsEdit] then begin
dsZent.Post;
end;
//
dsShop.close;
dsShop.free;
dsZent.close;
dsZent.free;
.
- Follow-Ups:
- Re: Again: How to copy a memo
- From: Willi Kühnis
- Re: Again: How to copy a memo
- From: Guillem
- Re: Again: How to copy a memo
- Prev by Date: Re: How to copy a memo
- Next by Date: D2005 ADO problem: multiple-step OLE DB operation generated errors
- Previous by thread: Can you bypass ADO and pass SQL straight to Oracle?
- Next by thread: Re: Again: How to copy a memo
- Index(es):
Relevant Pages
|