i have string variable on my VB.net which came from Stored Procedure, after put it on variable , i want to make the values have specified Space.
the rule is like this
the number on the image mean spaces,
i already do some trial and error like this :
Dim words As String() = receiptText.Split(" ")
Dim word As String
Dim XMLBuild As New StringBuilder
XMLBuild.Append(Space(9))
For Each word In words
XMLBuild.Append(word)
XMLBuild.Append(Space(9))
Next
but the result is
{ PLEASE KEEP THIS RECEIPT AS VALID PROOF OF PAYMENT }
not like the rule that i should do. is there any string function i shold use ?
See Question&Answers more detail:os