Results 1 to 2 of 2

Thread: Function

  1. #1
    Lance Guest

    Default Function

    I am trying to replace characters in a string with this function, but it only does one of the replaces.<BR><BR>Function FixDir(thestring)<BR>FixDir = Replace(thestring," ","_")<BR>FixDir = Replace(thestring,"/","-")<BR>End Function<BR><BR>How do I get it to replace both characters?<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Function

    try this<BR><BR>Function FixDir(thestring)<BR>thestring= Replace(thestring," ","_")<BR>thestring= Replace(thestring,"/","-")<BR>FixDir = thestring<BR>End Function

Posting Permissions

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