how to jump to a new line in a string

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

melamel
Posts: 30
Joined: Tue May 10, 2016 3:49 am

how to jump to a new line in a string

Postby melamel » Tue Jun 14, 2016 3:13 am

I created a string and I wrote some words inside it and I want to jump to a new line and write other things. How to jump to a new line inside a string, please ?

johansamuelsson
Posts: 165
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Re: how to jump to a new line in a string

Postby johansamuelsson » Wed Jun 15, 2016 2:02 am

Hi, use ASCII characters, @chr(13) or @chr(10), i.e.

Code: Select all

%string = "a b c" + @chr(13) + "d e f" @uiprompt(%string)
See further http://www.theasciicode.com.ar/extended ... e-255.html

Regards Johan

melamel
Posts: 30
Joined: Tue May 10, 2016 3:49 am

Re: how to jump to a new line in a string

Postby melamel » Thu Jun 16, 2016 3:19 pm

Many thanks for your response Johan!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests