+ Post New Thread
Results 1 to 5 of 5
Coding Thread, vbscript string manipulation in Coding and Web Development; can anyone think of a way of reading in a string then outputting it back stripping out any commas? I ...
  1. #1


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,588
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    295

    vbscript string manipulation

    can anyone think of a way of reading in a string then outputting it back stripping out any commas? I have an inventory script and Samsung put a ~@*&ing , in their name which means it blows all my table formatting to pieces

  2. #2


    Join Date
    May 2009
    Posts
    3,000
    Thank Post
    265
    Thanked 794 Times in 602 Posts
    Rep Power
    289
    The replace function? What am I missing?

    something like :

    output=replace(input,",","")
    Last edited by pcstru; 14th November 2013 at 02:06 PM.

  3. Thanks to pcstru from:

    sted (14th November 2013)

  4. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,588
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    295
    Quote Originally Posted by pcstru View Post
    The replace function? What am I missing?
    in all probability nothing just something ive never needed before lol

  5. #4


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,588
    Thank Post
    228
    Thanked 856 Times in 735 Posts
    Rep Power
    295
    Quote Originally Posted by pcstru View Post
    The replace function? What am I missing?

    something like :

    output=replace(input,",","")
    quick test with partial code (just the bit I need on the affected laptop typically the heads lol) shows it works now up to v8 of a script I only did v1 for a few weeks ago lol

    even simpler though input=replace(input,",","")
    Last edited by sted; 14th November 2013 at 02:48 PM.

  6. #5

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,451
    Thank Post
    1,438
    Thanked 1,169 Times in 797 Posts
    Rep Power
    707
    Might be worth bookmarking this site: VBScript Language Reference

    The beauty of VBS being so simple is that just by scanning function names in a list, 9 times out of 10 you'll find what you need.

  7. Thanks to LosOjos from:

    sted (14th November 2013)

SHARE:
+ Post New Thread

Similar Threads

  1. vbscript manipulating text files
    By sted in forum Coding
    Replies: 5
    Last Post: 24th October 2013, 01:58 PM
  2. VBScript - SQL String Help
    By jmedlin6 in forum Scripts
    Replies: 1
    Last Post: 1st May 2012, 11:04 AM
  3. Replies: 38
    Last Post: 1st August 2011, 11:18 PM
  4. GNU Image Manipulation Program (GIMP)
    By _Bat_ in forum Downloads
    Replies: 1
    Last Post: 30th June 2006, 10:32 PM
  5. Printer vbscript ?
    By mac_shinobi in forum Scripts
    Replies: 1
    Last Post: 14th September 2005, 08:21 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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