- Home
·
- String Manipulation
·
- This code takes a regular string of text and converts it into a basic HTML string to view in a brow
This code takes a regular string of text and converts it into a basic HTML string to view in a brow
This code takes a regular string of text and converts it into a basic HTML string to view in a browser (MS Webbrowser Control). I have seen
Rate This code takes a regular string of text and converts it into a basic HTML string to view in a brow
(1(1 Vote))
'--
'-- This blanks the browser...without this line, .write will append
'-- Webbrowser1.Document.Open "text/html", "replace"
'--
'-- Webbrowser1.Document.write TEXT2HTML(strYourTexttoConvert)
'--
Public Function TEXT2HTML(strText As String) As String
Dim strTemp As String
strTemp = "<html><body><Font face=arial size=2>" & _
vbCrLf & _
Replace(strText, vbCrLf, vbCrLf & "<BR>") & _
vbCrLf & _
"</font></body></html>"
TEXT2HTML = strTemp
End Function
This code takes a regular string of text and converts it into a basic HTML string to view in a brow Comments
No comments yet — be the first to post one!
Post a Comment