adding strings?

TommyEvans

Active member
Joined
Feb 19, 2010
Messages
39
Programming Experience
Beginner
Alright. I have a statement. I need it to say something.

I tried this:
mail.Subject = txtHotel.Text " - " & txtUsername.Text

txtHotel.Text being a textbox and same with txtUsername.Text

mail.Subject = "- " & txtUsername.Text
works.

I need to include the other text box before the " - "

How do I do this?
 
Re:

Try
VB.NET:
mail.Subject = txtHotel.Text & " - " & txtUsername.Text

Regards
Colin
 
Back
Top