469,090 Members | 1,326 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

New Line in vb code

hi all,
i have to create a little help pop up window. in that pop up window, it will list a whole bunch of stuff but in a new line.

right now, my code looks like this:
msgbox "item1" & vbnewline & "item2" & vbnewline & "item3" & ........... "item79"

is there a way to bring each "& vbnewline" to the next line in the actually code so i can see them much clearer?

i want the code to look something like this:

msgbox "item1"
& vbnewline
& "item2"
& vbnewline
etc.....

thanks
Nov 4 '07 #1
2 1691
YarrOfDoom
1,247 Expert 1GB
I think you can try it this way:
Expand|Select|Wrap|Line Numbers
  1. msgbox "item 1" _
  2. & vbnewline _
  3. & "item 2" _
  4. & vbnewline _
  5. & "item 3" _
  6. ...
Important is the space before the underscore, else it won't work.

Yarr Of Doom
Nov 4 '07 #2
I think you can try it this way:
Expand|Select|Wrap|Line Numbers
  1. msgbox "item 1" _
  2. & vbnewline _
  3. & "item 2" _
  4. & vbnewline _
  5. & "item 3" _
  6. ...
Important is the space before the underscore, else it won't work.

Yarr Of Doom
Awesome, Exactly what i needed. Thanks!
Nov 5 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

23 posts views Thread by FrancisC | last post: by
13 posts views Thread by programming | last post: by
19 posts views Thread by =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.