Results 1 to 16 of 16

Thread: Inserting at Position

Threaded View

  1. #8
    Fanatic Member AceInfinity's Avatar
    Join Date
    May 2011
    Posts
    696

    Re: Inserting at Position

    Just wondering why you use the replace() function instead of insert()? I only vaguely read through your code, still a little confused.

    vb Code:
    1. Dim str As String = "this is string value"
    2. str = str.Insert(str.IndexOf("string"), "my ")

    edit: Disregard my post... I didn't see this was for asp.net, I assumed some kind of vb script.
    Last edited by AceInfinity; Jan 27th, 2012 at 12:20 AM.
    <<<------------
    Improving Managed Code Performance | .NET Application Performance
    < Please if this helped you out. Any kind of thanks is gladly appreciated >


    .NET Programming (2012 - 2018)
    ®Crestron - DMC-T Certified Programmer | Software Developer
    <<<------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width