Shop OBEX P1 Docs P2 Docs Learn Events
...", 34, "... plague of strings. Web Server HTML tip — Parallax Forums

...", 34, "... plague of strings. Web Server HTML tip

UltraLazerUltraLazer Posts: 30
edited 2010-11-19 19:33 in Accessories
StringSend(0, string("<BODY bgcolor=", 34, "#606060", 34, " text=", 34, "#000000", 34, ">", PST#NL))

is equivalent to
StringSend(0, string("<BODY bgcolor='#606060' text='#000000'>", PST#NL))

This hung me up for a while... all that ,34, is bad for the old school HTML flow, even with cut and paste. Enter google.

( ' ) instead of (", 34, ") to represent ( " ) within a sting . This syntax swap is standard in java and so I assumed it to also be true of HTML Although, this is untested outside of Google chrome.

Though ' is used for commenting in Spin, the clever folks at Parallax have made it just a normal character if it occurs within a string.
Sign In or Register to comment.