Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

removing white space

Posted on 2005-05-03
5
Medium Priority
?
377 Views
Last Modified: 2008-02-01
I am prompting users for input for a directory structure.  I need assistance on removing white space using vb script.  Thanks in advance
0
Comment
Question by:prostang
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:List244
ID: 13921476
White space like spaces in strings? You can use Trim(Variable)
0
 

Author Comment

by:prostang
ID: 13921638
I need to delete the white space within the variable.  I used the trim command for before and after, but it does not work for space within the variable.
0
 
LVL 8

Accepted Solution

by:
List244 earned 225 total points
ID: 13921727
replace(Variable, " ","") Like that?
0
 
LVL 8

Expert Comment

by:List244
ID: 13921740
Or, if you just want to replace DOUBLE spaces:

do while instr(temp,"  ")
Temp = replace(temp, "  "," ")
loop
0
 

Author Comment

by:prostang
ID: 13922031
I just ordered a VBS reference manual.  Thanks for the help with this!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question