Page 1 of 1
Multiline strings
Posted: Wednesday 24th June 2020 2:27pm
by basica
I did a quick google search and I found and old mailing list thread that seems to indicate it wasn't possible at the time (back in 2013) but I was wondering whether there's a straightforward way to doing it now?
Re: Multiline strings
Posted: Wednesday 24th June 2020 5:07pm
by cogier
Hi and welcome to the forum.
You can do multiline strings, here are a couple of examples: -
Dim sString As String[] = ["I did a quick google search and I found and old mailing list thread that seems to indicate it wasn't possible at the time (back in 2013)",
"but I was wondering whether there's a straightforward way to doing it now?"]
Dim sS As String = "I did a quick google search and I found and old mailing list thread" &
" that seems to indicate it wasn't possible at the time (back in 2013)" &
"but I was wondering whether there's a straightforward way to doing it now?"
Re: Multiline strings
Posted: Thursday 25th June 2020 7:19am
by stevedee
...and you can naturally do stuff like this:-
Public Sub Button1_Click()
Dim CatStevens As String
CatStevens = "It's not time to make a change" & gb.CrLf &
"Just relax, take it easy" & gb.CrLf &
"You're still young, that's your fault" & gb.CrLf &
"There's so much you have to know" & gb.CrLf
TextArea1.Text = CatStevens
End
Re: Multiline strings
Posted: Thursday 25th June 2020 9:30am
by basica
Cheers guys. Appreciate the responses.