Shop OBEX P1 Docs P2 Docs Learn Events
help with string contaning " — Parallax Forums

help with string contaning "

zapmasterzapmaster Posts: 54
edited 2010-09-19 18:38 in Propeller 1
I have a string that has " in it but that ends the string i want to include a " in my string. All i got last night is a headache.

sock[sockidx].str(string("<br><a href="http://s1206.photobucket.com/albums/bb443/zapmaster207/?action=view&current=wind.jpg&quot; target="_blank"><img src="http://i1206.photobucket.com/albums/bb443/zapmaster207/wind.jpg&quot; border="0" alt="Photobucket"></a>"))

please direction and advil is needed :-)

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-09-18 09:08
    Do it like this:
    CON
    
      QU = 34
    
    ...
    
    myStr = string("target=", QU, "_blank", QU)
    

    -Phil
  • zapmasterzapmaster Posts: 54
    edited 2010-09-18 17:38
    Do it like this:
    CON
    
      QU = 34
    
    ...
    
    myStr = string("target=", QU, "_blank", QU)
    

    -Phil

    thank you i get it now 34 is the dec# for "

    my headache is gone thanks to Phil
  • HarleyHarley Posts: 997
    edited 2010-09-19 18:24
    Thank you, Phil, also. Today I needed this 'fix' and recalled your suggestion. Then I also understood why this works. Seems like dealing with text can be such a nuisance at times, not for the human but for the computer getting the proper format.
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2010-09-19 18:38
    You can see any decimal or hexadecimal value of a character by going in Propeller Tool and at the menu strip select "Help" and select "View Character Chart". The values for the character that your mouse is hovering over is displayed at the bottom of the pop up menu.
Sign In or Register to comment.