PROMPT with multiple lines in a sequence

Somewhere to ask questions about the best way to use SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
User avatar
carlomuccini
Posts: 260
Joined: Mon Apr 27, 2020 12:42 pm
Location: Montecatini Terme (PT), Italy
Contact:

PROMPT with multiple lines in a sequence

#1

Post by carlomuccini »

Hi

I was wondering if it was possible to insert a PROMPT with multiple lines in a sequence.
That is, if there was a special character like chr(13) to go to the next line on multiple lines.

Thanks

Carlo
User avatar
admin
Site Admin
Posts: 17530
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: PROMPT with multiple lines in a sequence

#2

Post by admin »

Hi Carlo,

yes, you can do that - put '\n' in the text where you want a line break, so for example

Code: Select all

one\ntwo\nthree
will give you the words one two three on three separate lines.

I'm not sure that this was really a planned feature - it just works out that it works. If you find it is broken in some way (ie doesn't save and then reload properly or similar) then let me know.

cheers,

Robin
Post Reply