-
I want to do something like this:
"Hello " & Form2.txtName.Text & " how are you?"
and this goes on until I get a message saying that the line is too long. I've tried passing to the other line but I always get a problem..(the lines become red and an alert messga pops up)....How can I go on to the other line?
-
You should explain a little. What line goes red , where are tou using this string??
-
You should explain a little. What line goes red , where are you using this string??
-
It's like this.....say for example I try to go to the other line...I will do the following:
"Hello " & Form2.txtName.Text &
" how are you?"
-----
When I try to do this, I get the following message:
"Compile error:
Expected: expression"
-
"Hello " & Form2.txtName.Text &
" how are you?"
it will give u an error because once u put it on the second line u are not connecting with the previous
the following should work:
"Hello " & Form2.txtName.Text & _
" how are you?"
or
"Hello " & Form2.txtName.Text &_
" how are you?"
i always forget if the "_" goes together or with a space
-
One thing you can't do though is put it in a quote:
"Hello " & Form2.txtName.Text & " _
how are you?"
I believe you will get an error for that.
But this is fine:
"Hello " & Form2.txtName.Text & _
" how are you?"
-