VB.NET - VBScript - Insert text into the middle of a string

Hazeus Barbarius posted at 18-Nov-08 01:30

I am reading a text file line by line checking for specific criteria..

Do While objFile.AtEndOfStream <> True
  strCurrentLine = objFile.ReadLine
if InStr(226, strCurrentLine, "7141570", vbTextCompare) = 226 Then

>Checking Column 226 for this text "7141570", when this returns TRUE I want to insert "99" elsewhere on that line (lets say Column 250).  How do I do this?

 


Click here to sign in and reply. You could earn money via our message board contest just for being helpful.
  VBScript - Insert text into the middle of a string - Hazeus Barbarius  18-Nov-08 01:30 1:30:39 PM
      Solution - san san  18-Nov-08 02:31 2:31:47 PM
      use replace method for that - A K  18-Nov-08 11:24 11:24:56 PM
      try this link - C_A P  19-Nov-08 03:56 3:56:40 AM
View Posts

  

Search

search



Purchase