VB.NET Insert a string at specified indexof position

By alan7811

hey coders i need some help, im trying to insert the string ” ” or a blank space into a specified index on a textbox like so textbox = heybrowhatsup id want to insert a ” ” on the indexes 4,8 and 14, to get (hey bro whats up) But my code just wont work any solutions? thanks.

my code:

    Dim str As String = sum2.Text
    Dim insStr As String = " "
    Dim strRes As String = str.Insert(15, insStr)

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273