VB.net Insert Environment.NewLine at 20 characters.
Posted
by xzerox
on Stack Overflow
See other posts from Stack Overflow
or by xzerox
Published on 2010-05-23T18:10:58Z
Indexed on
2010/05/23
18:20 UTC
Read the original article
Hit count: 350
Well I have been able to figure this out but what I want to do is make my string have a new line after 20 chars. I know how to find how many chars the string has but not how to insert environment.newline at 20 chars.
I am using this to find the string length
If string.Length > 20 then
'Need to be able to insert environment.newline at 20 chars
Else
'Normal string
End If
© Stack Overflow or respective owner