
Assigning Multi line text to a multiline text box
Quote:
>Just change your code as below;
>address = "house number" + Chr$(13) + Chr$(10) + "street name"
>Text1.Text = address
1) Get in the habit of using "&" instead of "+" for string concatenation,
to avoid accidentally adding a string of digits to an integer in other
statements.
2) Since VB4, there are built-in constants that are much more self-documenting
than Chr$(number) calls:
vbCr
vbLf
vbCrLf
You want the last one for this use. For MsgBox text, use vbLf.
-- Rick
--
(Rick Rutt is a system architect living and working in metropolitan Detroit.)