View Single Post
  #1 (permalink)  
Old November 12th, 2003, 05:32 PM
PanzarPaw PanzarPaw is offline
Authorized User
 
Join Date: Nov 2003
Location: Stockholm, , Sweden.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Find a Particular Word

hi all!

I'm just about doing a "Try it out" in Beg ASP 3.0 - Chapter 10 - about displaying a Directory. Of course I want to spice it up a bit with some adds of my own.. :)

Everything's just working fine till I got myself this hard nut to crack..

You see, I want to display the Server Path as you can obtain with
Request.ServerVariables("PATH_INFO")

but then I only want to display the ONE Parent folder of the .asp file I'm browsing

So I figured, Using the "Finding a Particular Word" - string manipulator - Instr(string, "/") - would be a nice aid for the task.

Only that, the Instr() returns the value of the first occurrence of the "/" starting from the left


Now, Is there a way to make a Instr() search starting from the right?
That I think would just do it! :D

/ Paw
Reply With Quote