Solved

DB: Insert bold text in a Memo field

Posted on 1997-09-17
3
381 Views
Last Modified: 2006-11-17
Hi!
   I have a Memo field in a DB, which will contain from several lines to 2-3 pages of text, and it will have some words in bold, others in italic, and so.
My question is if that memo field can handle that directly. If not, what would be a solution?

Thanks in advance!
0
Comment
Question by:taco
3 Comments
 
LVL 3

Expert Comment

by:rmichels
ID: 1435228
The memo field in the database does not carry any font information.  It is up to the control displaying the memo field to determine how the text appears.


0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1435229
You can put your own control information in a memo field to indicate bold, underline, etc. Many wod processors maintain this information by using ascii values outside of the normal display set to indicate special formatting. For instance, they may use values below ascii 32 (the space) or above 127 (the extended character set).  Then, when the data is read the text in between the special markers are formatted differently, and themarkers are removed.  When the data is saved again, the markers are replaced.  Ever looked at a word doc with a hex viewer?  There is a ton of extra formatting there, so you can se that your task will not be an easy one.   FInding a control that you can use to display and read the mixed formating as well will be a problem.  Your best bet would be to ole control MS word.  BUt that means that all your users have to have it installed, and you can't break the MS OFFICE umbilical!
0
 

Author Comment

by:taco
ID: 1435230
A workaround for myself:
   Instead of using a Memo field, I use a binary field (OLE object), and I use a RichTextBox control.
   Then I insert directly RichTextBox.TextRTF into my binary field, and ... PERFECT.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 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

13 Experts available now in Live!

Get 1:1 Help Now