Snippets
05

 

' INSERT COMMA IN STRING

inString="020312181920"

strLen=len(inString)

xx=1

for x=0 to strLen -2
  inPart=mid(instring,xx,2)
  newString=newstring & inpart & ","
  xx=xx+2
  x=x+1
next

newstring = Left(newstring, Len(newstring) - 1)

Response.Write(inString & "")
Response.Write(newString & "")

Posted in: VbScript

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Only registered users may post comments.

  120 OLD FREEMANS WAY, BREWSTER, MA 02631
  P. O. BOX 2342, BREWSTER, MA 02631
  (774) 323-3176
  CONTACT US