Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Memo in DBMemo einfügen (https://www.delphipraxis.net/20846-memo-dbmemo-einfuegen.html)

bundy 24. Apr 2004 11:30


Memo in DBMemo einfügen
 
:wall: :wall: :wall: :wall: :wall: :wall: Hallo Delphianer

Databasetype: MYSQL

Wie kann ich ein Memofeld (Textinnhalt) in ein DBMemofeld einfügen ?
Das soll ein Arbeitsprotokoll werden

Delphi-Quellcode:

var
Text1:String;
begin

Text1:='';
DataModule_Kunde.mySQLQuery_Kunde.Edit;
Text1:=DataModule_Kunde.mySQLQuery_KundeHistory.Text+Memo1.Text;
DataModule_Kunde.mySQLQuery_KundeHistory.Text:=Text1;
DataModule_Kunde.mySQLQuery_Kunde.Post;
end;
Aber so bekomme ich einen Feheler?
Wenn ich als DataModule_Kunde.mySQLQuery_KundeHistory.VALUE nehme dann schreibt er mir BLOB ins DBMemofeld.
HILFE HILFE :wall: :wall: :wall: :gruebel: :gruebel: :gruebel:

Sharky 24. Apr 2004 12:27

Re: Memo in DBMemo einfügen
 
Hai bundy,

mache es doch einfach so:
Delphi-Quellcode:
begin
  DataModule_Kunde.mySQLQuery_Kunde.Edit;
  DataModule_Kunde.mySQLQuery_Kunde.FieldByName ('KundeHistory').AsString := Memo1.Text;
  DataModule_Kunde.mySQLQuery_Kunde.Post;
end;
Wenn dein Feld KundeHistory heisst um vom Typ Text in der Tabelle ist.


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:28 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