|
Hi Booth, HTML source I've seen has something like this: bgcolor=#ffffff Using Barbara's prototypes, here's a procedure to return the #ffffff portion of the above example. It's used like this: c eval Color = HTMLcolor(255:255:255) The procedure is: p HTMLcolor b d HTMLcolor pi 7a d Red 5i 0 value d Blue 5i 0 value d Green 5i 0 value d Result s 7a * Convert each color to hex and append to result c eval Result = '#' c callp cvthex1To2 (%addr(Result)+1:%addr(Red)+1:2) c callp cvthex1To2 (%addr(Result)+3:%addr(Blue)+1:2) c callp cvthex1To2 (%addr(Result)+5:%addr(Green)+1:2) c return Result p e hth, Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax From: <booth@MartinVT.com> > HTML color values are red:blue:green. 0 to 255, or 00 to ff. How would > i make color Value 255:255:255 appear in a string as ff:ff:ff? _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.