Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi record was not located to update (https://www.delphipraxis.net/13046-record-not-located-update.html)

lkz633 10. Dez 2003 06:32


record was not located to update
 
Hallo,

habe folgenden code:
Code:
var blob_source: tstream;
    blob_target: TIBBlobStream;
begin
  table.Insert;
  table.FieldByName('xyz').AsInteger:= 5;  
  try
    blob_source:= tstream.Create;
    // fill the stream with any data you want here
    blob_target := tibblobstream(table.createblobstream(table.FieldByName('xyz'),bmReadWrite)); // create blob container
    blob_target.CopyFrom(blob_source,blob_source.size);    // save stream into blob
  finally
    table.Post;   // post the changes
    blob_source.Destroy;
    blob_target.Destroy;
  end;  // try finally
Bekomme leider die Fehlermeldung, das der Record zum aktualisieren nicht gefunden werden konnte. Was mache ich falsch?

Danke und Gruss
lkz633


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:17 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz