Solved

Store the text in a DbMemo

Posted on 2001-07-23
10
222 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
  • 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now