Вопрос

I searched but nothing explains how to do this, for example

Dim sentence as String = "cat is an animal"

if i make a msgbox :

MsgBox(sentence)

it shows

cat is an animal

how to make a msgbox that says

cat
is
an
animal.
Это было полезно?

Решение

Easy way Replace space with new line

as in string words = MyString.Replace(" ","\r\n")

Split would be split on space in to an array , and then join that back up with new lines which is pointless unless you need the array for something else.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top