RobotStudio event

new line character

how do I add a newline character to the end of a string??

Comments

  • Probably "
    ", it might depend on the usage though.
    Russell Drown
  • I tried using "
    " but it gave me "unexpected unknown token" errors. What I really need is a newline character and a carriage return character which in most other languages that I've used would be represented as "

    ". Has anyone else ran into this problem? Does anyone have a solution or can this not be done using RAPID Strings??
     

    Thanx
  • Try something like this:
     

    str1:="Line11310"+"Line21310"+"Line310";

     

    You can append control characters to string literals with "XX", where XX is the hex value of the control character.

     

    Note that this does not work with instructions like TPWrite, probably only works with write instructuions to files or ports.
    RussD2009-05-29 19:51:34
    Russell Drown