Private Sub Command1_Click()
Debug.Print txtEdit.Text
Debug.Print Len(txtEdit.Text)
Debug.Print
Debug.Print txtEdit.TextRTF
Debug.Print Len(txtEdit.TextRTF)
End Sub
If you then typed "This is a test" into the RTB you'd see this in the Immediate Window.This is a testAs you can see there's quite a difference because the TextRTF contains all the hidden formatting code.
14
{\rtf1\ansi\ansicpg1252\deff0\deflan g1033{\fon ttbl{\f0\f nil\fchars et0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs17 This is a test
\par }
140
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
ASKER