Wierd Codes in My TextBoxes

  • Thread starter Thread starter Remulac
  • Start date Start date
R

Remulac

I've written a VB 6.0 program that uses Access as a back-end. Things
work pretty well, but I often retrieve data into large text fields
that contains formatting codes like this, for example:

{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}

Somehow these codes get written into the database when I save and/or
update a record. It seems pretty random as far as when it does or
does not do it.

Does anyone have an idea as to how I can prevent this, and also how I
can clean up the records with the codes?

Thanks.
 
* (e-mail address removed) (Remulac) scripsit:
I've written a VB 6.0 program that uses Access as a back-end. Things
work pretty well, but I often retrieve data into large text fields
that contains formatting codes like this, for example:

{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 MS Sans Serif;}}

This is a VB.NET language group. You will more likely get an answer if
you post your question to one of the VB6 groups (microsoft.public.vb.*).

The code you posted above is RTF code. You can use VB6's RichTextBox
control to display this text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

uncleared code 3
Problem with RichTextbox Rtf property, is it a major bug? 0
Can't change RichTextBox Color Table. 1
RTF2 Control 1
uncleared code 2
First line in rtf file and font 14
Regex on RTF files 16
u 4

Back
Top