+ 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
    7,059
    Thank Post
    232
    Thanked 924 Times in 793 Posts
    Rep Power
    308

    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,391
    Thank Post
    301
    Thanked 917 Times in 684 Posts
    Rep Power
    346
    The replace function? What am I missing?

    something like :

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

  3. Thanks to pcstru from:

    sted (14th November 2013)

  4. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    7,059
    Thank Post
    232
    Thanked 924 Times in 793 Posts
    Rep Power
    308
    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
    7,059
    Thank Post
    232
    Thanked 924 Times in 793 Posts
    Rep Power
    308
    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 03:48 PM.

  6. #5

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,771
    Thank Post
    1,511
    Thanked 1,294 Times in 884 Posts
    Rep Power
    813
    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, 02:58 PM
  2. VBScript - SQL String Help
    By jmedlin6 in forum Scripts
    Replies: 1
    Last Post: 1st May 2012, 12:04 PM
  3. Replies: 38
    Last Post: 2nd August 2011, 12:18 AM
  4. GNU Image Manipulation Program (GIMP)
    By _Bat_ in forum Downloads
    Replies: 1
    Last Post: 30th June 2006, 11:32 PM
  5. Printer vbscript ?
    By mac_shinobi in forum Scripts
    Replies: 1
    Last Post: 14th September 2005, 09: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
  •