Hey up everyone,
I'm just wondering what's the best way to build up a long string in
VB? I've tried a few variations but getting errors every time.
For example:
Code:
myVar = "first part of string"
myVar += "second part of string"
Code:
myVar = "first part of string"
myVar &= "second part of string"
Code:
myVar = "first part of string\
second part of string"
As said though I just keep getting errors. It's a long string that will have a lot of variables concatenated within it, so I don't want to be all on the same line for readability purposes.
Thanks for any help,
Adam