[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Store the text in a DbMemo

Can anybody please explain me how to store the text in DbMemo in a table. I got the field, the table, etc but when calling the post I get an error message.

thanks in advance.
0
gsoldado
Asked:
gsoldado
  • 4
  • 3
  • 2
  • +1
1 Solution
 
kretzschmarCommented:
what errormessage do you get?

what about
TBlobField(table1.fieldByName('MemoField')).LoadFromFile(AFilename);

or
TBlobField(table1.fieldByName('MemoField')).LoadFromStream(AStream);

meikl ;-)
0
 
SMakarenkoCommented:
What database?
0
 
MotazCommented:
You can use this:

Example1:

Table1.FieldByName('Memo').AsString:= MyMemo;


Example2:

Table1.FieldByName('Memo').AsString:= Memo1.Text;

Motaz

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
SMakarenkoCommented:
What database? and
Field type
0
 
gsoldadoAuthor Commented:
I'm using Access 2000 as a try, but I can switch to fox or something else. As long as front end is Delphi.

The field type is MEMO in access.
0
 
SMakarenkoCommented:
switch to Oracle ?
0
 
SMakarenkoCommented:
switch to Oracle ?
0
 
kretzschmarCommented:
well, then should my sample work, if you want the insert to do with a file/stream, otherwise use the tdbmemo-control for display and input
0
 
kretzschmarCommented:
hello?
0
 
gsoldadoAuthor Commented:
Kool! it works!
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now