This is probably a stupid question but does any one know how to create a space between a text string and a variable?
(See screen shot for example)
In the above image you can see the message box displaying “The weather inNew YorkIs degrees” however, this should read “The weather in New York Is degrees”.
New York - is a variable while - The weather in - is a string of text
Use String.Format, that’s exactly what it’s for: String.Format("The weather in {0} Is {1} degrees", city.ToString(), temperature.ToString())
Depending on your formats, you could specify formats directly in the “placeholders”: