Solved

Store the text in a DbMemo

Posted on 2001-07-23
10
226 Views
Last Modified: 2010-04-06
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
Comment
Question by:gsoldado
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6311124
what errormessage do you get?

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

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

meikl ;-)
0
 

Expert Comment

by:SMakarenko
ID: 6311195
What database?
0
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 6311240
You can use this:

Example1:

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


Example2:

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

Motaz

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:SMakarenko
ID: 6311475
What database? and
Field type
0
 
LVL 1

Author Comment

by:gsoldado
ID: 6313084
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
 

Expert Comment

by:SMakarenko
ID: 6316205
switch to Oracle ?
0
 

Expert Comment

by:SMakarenko
ID: 6316431
switch to Oracle ?
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6320998
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
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6325996
hello?
0
 
LVL 1

Author Comment

by:gsoldado
ID: 6330469
Kool! it works!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question