|
-
July 13th, 2001, 02:58 AM
#5
Re: This seems to work
'add a richtextbox control (visible= false) to a form, and try this code.
'Your matter is : you have a lot of chr$(6) in your text. Look at after file
'with your application. Hope this may solve.
private Sub Command1_Click()
With RichTextBox1
.FileName = "C:\before.txt"
'use "<" and ">" as they are readed this way
.Text = Replace(.Text, "<PhoneNumber>", "02020202", , , vbBinaryCompare)
.SaveFile "c:\after.txt", rtfText
'debug:
'.FileName = "c:\after.txt"
End With
End Sub
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|