string function HELP

Results 1 to 4 of 4

Thread: string function HELP

  1. #1
    Dvorak Guest

    Default string function HELP

    I have a URL in the form:<BR><BR>""<BR><BR>I need to place into a variable "images/..."<BR><BR>Can someone tell me how to do this? Obviously, there could be any number of subfolders under "images" so I need the string to start at "/images/" and end at the next quote mark (")<BR><BR>The catch is, I need to delete the first "/" from the start of the string. I want "images/..." and NOT "/images/..."<BR><BR>Thanks!

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

    Default RE: string function HELP

    No problem<BR><BR><BR>use the split function (split at /)<BR><BR>get all the values into an array then leave the first 3 elements out and then loop through the array concatinatine them with a /<BR><BR>

  3. #3
    Steve Cimino Guest

    Default RE: string function HELP

    Check out RIGHT(), LEFT(), MID(), INSTR(), and INSTRREV() to accomplish this.

  4. #4
    Join Date
    Dec 1969

    Default RE: string function HELP

    if i am right u need to store everything from /images into a variable.right?<BR><BR>if it is so, u can say<BR><BR>URL=""<BR>var=mid(URL,instr(URL,"/images"))<BR><BR>which will give the string from /images.<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