Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Option Explicit
Private Sub Command1_Click()
RichTextBox1.Text = ""
RichTextBox1.Parent.ScaleMode = vbPixels ' tabs get set later using units matching scale mode of RTBs parent
AddaLine "HELLO", 25
AddaLine "REM", 10
AddaLine "TEKTIPS", 99
End Sub
Private Sub AddaLine(strText As String, score As Long)
Dim lp As Long
' Example simply uses random colours
For lp = 1 To Len(strText)
RichTextBox1.SelColor = RGB(255 * Rnd, 255 * Rnd, 255 * Rnd)
RichTextBox1.SelText = Mid$(strText, lp, 1)
Next
RichTextBox1.SelColor = vbBlack
RichTextBox1.SelBold = True
RichTextBox1.SelTabCount = 1
RichTextBox1.SelTabs(0) = 100
RichTextBox1.SelText = vbTab & score & vbCrLf
RichTextBox1.SelBold = False
End Sub[/blue]