?
Solved

Memo.Lines -> Table1.FieldByName('MEMO').As???

Posted on 1999-08-01
3
Medium Priority
?
1,155 Views
Last Modified: 2010-05-18
Using Delphi 3, and given:

1 TMemo
1 TTable

and where the Table1 contains a MEMO record (Paradox and of Blob type) how do I get the contents/lines of a TMemo component into the 'MEMO' memo field for a record?

This obviously does not work:

Table1.FieldByName('MEMO').AsMemo := Memo1.Lines;

What would work?
0
Comment
Question by:Monroe406
[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
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 160 total points
ID: 1392344

Try this:

Table1.FieldbyName('MEMO').asstring := Memo1.lines.text;

Yours,

Alex
Athena's Place: http://www.bhnet.com.br/~simonet

0
 

Author Comment

by:Monroe406
ID: 1392345
Thanks...

However, next/new question...

How does one VIEW the contents of the Memo/blob field once it is in the Table/Record?

A little sheet of paper icon appears in the table's field cell currently.  How do I view that?
0
 
LVL 15

Expert Comment

by:simonet
ID: 1392346

You can try double-clicking it, but I don't think that's gonna work (it works in Database Explorer).

You need a TDBMemo in order to view the contents of a memo field, or the kind of DB component that suits the kind of data in the blob field (like OLE objects, graphics, audio, AVIs, etc).

Yours,

Alex
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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
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