?
Solved

Store the text in a DbMemo

Posted on 2001-07-23
10
Medium Priority
?
232 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 200 total points
ID: 6311240
You can use this:

Example1:

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


Example2:

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

Motaz

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

719 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