Skip to main content
15-Moonstone
December 28, 2019
Solved

String Functions - New Line Command

  • December 28, 2019
  • 1 reply
  • 3994 views

I am working on a project that requires a lot of text to be imported in a Prime 6 worksheet.  The text is reformat and saved to a Excel worksheet to improve its presentation.  This is pretty straight forward as shown on the attached PDF file.  (The Prime worksheet and support excel files are too big to post).  In going through the string commands, there is an option for new line command \n.  I have seen this in other programs, but not sure how to use it Prime.  There may be cases for it use.  

Best answer by LucMeekes
CR and LF , the Carriage Return and Line Feed are ASCII character numbers 13 and 10 respectively. You can create them as a string with vec2str(stack (13,10)) and concatenate them to another string.
Success!
Luc

1 reply

LucMeekes23-Emerald IVAnswer
23-Emerald IV
December 28, 2019
CR and LF , the Carriage Return and Line Feed are ASCII character numbers 13 and 10 respectively. You can create them as a string with vec2str(stack (13,10)) and concatenate them to another string.
Success!
Luc
tietjee15-MoonstoneAuthor
15-Moonstone
December 29, 2019

Luc,  Thank you the information.  Works with other ASCII characters, should have remebered

David