Solved

Store the text in a DbMemo

Posted on 2001-07-23
10
229 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
Industry Leaders: 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

623 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