String disection into substring?

Results 1 to 4 of 4

Thread: String disection into substring?

  1. #1
    Tara Guest

    Default String disection into substring?

    I know this is probably simple, but I have a URL and I want to get rid of everything but the actual file name, so I can then delete the file from my server using the C:path ofilename.gif.<BR><BR>I know how to get the substring from characters 30 through 40, but how do I get it from character 30 to the end of the string, wherever that may be? that will cut the URL into just the file name, then I can add the path and tell it to delete the file. (these are files uploaded to my own server that I&#039m trying to delete).<BR><BR>Any help would be appreciated. Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: String disection into substring?

    Hi Tara,<BR><BR>Try using the Right() function.<BR><BR>Sreenivas

  3. #3
    Rob Guest

    Default RE: String disection into substring?

    sPath = C:path ofilename.gif<BR>dim sFile<BR><BR>sFile = Right(sPath,len(sPath)-InStr(sPath), "\"))

  4. #4
    mackjack Guest

    Default RE: String disection into substring?

    &#060;%<BR>phno = "8003218684"<BR>%&#062;<BR>&#060;%= left(phno(counter),3) %&#062; yields 800<BR>&#060;%= mid(phno(counter),4,3) %&#062; yields 321<BR>&#060;%= right(phno(counter),4) %&#062; yields 8684<BR><BR>Check out <BR>

Posting Permissions

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