Someone suggested this, but I can't figure out how to get it to work...
VB Code:
If InStr(strData, Chr$(27)) Then i = InStr(strData, Chr$(27)) While i <> 0 'process txtGameOutput.SelStart = i + 1 If InStr(i + 1, Text, Chr$(27)) Then txtGameOutput.SelLength = InStr(i + 1, Chr$(27) - i) Else txtGameOutput.SelLength = Len(strData) - i End If txtGameOutput.SelColor = Color etc txtGameOutput.SelBold = True etc txtGameOutput.SelItalic = False i = InStr(i + 1, strData, Chr$(27)) Wend txtGameOutput.Text = txtGameOutput.Text & strData ' txtGameOutput.SelStart = Len(txtGameOutput.Text)
Where process is the stuff to determine the code and replacement...
Any ideas?




Reply With Quote