VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

IRC TO RTF (Rich Text Format)

vcv  (16 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Converts IRC text to RTF and displays it in a RichText Box. Supports everything.

Inputs
rtf As RichTextBox: the richtext box to append the text to strData As String: the string to parse

Assumes
To call it, let's say you had RichTextBox1, you'd use... PutText RichTextBox1, strIRCText where strIRCText is the text to parse.

Returns
Nothing

API Declarations
Public Declare Function GetTextCharset Lib "gdi32" (ByVal hdc As Long) As Long
'* ANSI Formatting character values
Global Const Cancel = 15
Global Const BOLD = 2
Global Const UNDERLINE = 31
Global Const Color = 3
Global Const REVERSE = 22
Global Const ACTION = 1
'* ANSI Formatting characters
Global strBold As String
Global strUnderline As String
Global strColor As String
Global strReverse As String
Global strAction As String
Global Const strFontName = "Courier"
Global Const intFontSize = 8

Rate IRC TO RTF (Rich Text Format) (5(5 Vote))
IRC TO RTF (Rich Text Format).bas

IRC TO RTF (Rich Text Format) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters