DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Avron Polakow Guest

    Right(string1,Len(string1)-Instr(StrReverse(string1),"/"))



    > I Need to get the position of the last "slash" in an URL, to know the file
    > name.Is there a way, without an Instr Loop, to get it's position ??
    >
    > ex: /TSI/PILOTS/TEST.ASP



  2. #2
    John Timney (MVP) Guest

    Re: Right(string1,Len(string1)-Instr(StrReverse(string1),"/"))

    a = split("/TSI/PILOTS/TEST.ASP", "/")
    response.write uBound(a)

    --
    Regards

    John Timney
    Microsoft MVP
    (http://support.microsoft.com/support/mvp/program.asp)
    Co-Author Professional JSP
    ISBN: 1-861003-62-5



    Avron Polakow <avronp@inter.net.il> wrote in message
    news:39B7377A.ED8D9D5C@inter.net.il...


    > I Need to get the position of the last "slash" in an URL, to know the file
    > name.Is there a way, without an Instr Loop, to get it's position ??
    >
    > ex: /TSI/PILOTS/TEST.ASP





Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links