Results 1 to 2 of 2

Thread: Carriage return characters in command strings

  1. #1
    Join Date
    Feb 2001
    Location
    Plano, TX, USA
    Posts
    3,055

    Default

    I have discovered a small problem. :smile:

    I have an updated plugin just about ready. One of the fields on this plugin's interface allows for multiple lines of text to be entered. These lines are delimited with carriage return <CR> characters. During testing this past weekend, I found that if I place a <CR> in a command's string variable (svalue1 or svalue2), the resulting saved .gir file is no longer "loadable" by Girder.

    My plan for getting around this limitation is to transpose the <CR> character to and from a different value when saving and displaying the text.

    A few questions:
    What non-displayable character should I use to represent <CR>?
    Is there any chance Girder could do this for me when saving and loading the .gir file?
    How are the beaches of Southern California for researching Physics? :smile:
    Mark F

  2. #2
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,399

    Default

    Hi Mark,

    Girder really should escape the strings in the commands. Maybe the C convention would be good : <cr> = n ...

    :grin: Santa Barbara :grin: seems to be a good place to do research, especially the beach, the natural habitat of the plasma.

    <font size=-1>[ This Message was edited by: RonB on 2001-06-19 20:19 ]</font>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •