<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I have 9 quite a complicated hex to human readable
routines.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I'm trying to improve the readability of the data by
colors.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>How can I imbed color commands in a concatenated
string 'before' I add the line of data to the RichEdit
component?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Data </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>R2500C5001000000030489FFE13DFCA9001A24EA81001A24EAA1001A24EA81001A24EAA1FFE5DB1691FFE13DFCB1FFE5DB16F900031367D9FFE4516340004F004F120000000041000000001000189B367FD900</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Decoded </FONT></DIV>
<DIV><FONT size=1>Poly Tool 1-89 RT CCW X1 -20.00-A9 Y1 17.00-81 X2 17.00-A1 Y2
17.00-81 X3 17.00-A1 Y3 -17.00-91 X4 -20.00-B1 Y4 -17.00-F9 Z Rapid 2.00-D9 Z
End -18.00-40 XY Feed 200.66 Z Feed-200.66-12 XXX 0.00-41 XXX 0.00-10 XXX
16.00-7F</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1><FONT size=2>I'm hoping to change the -XX to another color
which would make it much easier to read.</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=2>I can do this within the richedit box, but it's
messy and any time I change the decode code, I'll have to change the color
routines. as well.</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=2>Much easier to decode and change color at the
same time.</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=2>Thanks Wallace</FONT></FONT></DIV>
<DIV><FONT size=1><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT size=1><FONT size=2></FONT> </DIV></FONT></BODY></HTML>