Traditional Culture Encyclopedia - Weather inquiry - How to add spaces and carriage returns in the TXT display box of VB?

How to add spaces and carriage returns in the TXT display box of VB?

You can use space () to represent spaces.

Line breaks and carriage returns can be vbcrlf.

TXT should be set to multi-line display.

Options? specific

Private? Sub? Command 1_Click()

Text 1。 Words? =? "Beijing"? & amp? Space (2)? & amp? "28 degrees" & amp? Space (2)? & amp? "clear" & amp? Space (2)? & amp? "Suitable for travel"? & amp? _

vbCrLf? & amp? Shanghai & Space (2)? & amp? "29 degrees" & amp? Space (2)? & amp? Rain & Space (2)? & amp? "Not suitable for travel"

End? Sub, if you have any questions, please ask them. If you are satisfied, please adopt them.