Chicko Bueno
Chicko Bueno

Reputation: 337

String Word Wrap in Visual Basic

I want to wrap my recipient email in my string assignment that has a very long list.

Example:

Dim MailList As String

MailList = _
"Email Address 1,"
"Email Address 2,"
"Email Address 3,"
'Go on until several lines

What command should i put in between each of the emails?

Thanks.

Upvotes: 0

Views: 2269

Answers (1)

gcochard
gcochard

Reputation: 11734

Use & to concatenate the strings, and since you are breaking it into multiple lines, use an underscore after the ampersand.

Upvotes: 2

Related Questions