A "return" called vbline?

BlueOysterCult

Regular
Joined
Oct 3, 2003
Messages
84
Hello again,
I would like my msgBox text to have a few (3) sentences - one below the other - and I remember seeing something like "vbline" to make that happen.. Is that correct?
Rob
 
You can add a return to your string....

Use it like this :

dim outtext as string
outtext = "First line"+chr(13)+"Second line"+chr(13)+"Last line"


chr(13) is the character code for the "enter"-key
 
Chr is a compatibility command, you should use the System.Text.Encoding.ASCII namespace for converting bytes to characters(and vice versa) but Environment.NewLine automatically translates into Character 10 and Character 13 anyway.
 
Back
Top