
March 21st, 2003, 11:05 AM
|
 |
meester luva luva
|
|
|
|
|
startAt - stopAt problem
Ok, I am having trouble getting this to do what it should.. which is to set NavID as the directory name from the link... any ideas?
Sub WriteFooterLink( link, pageTitle, pageDescription )
startAt = InStrRev ( link, "/" )
stopAt = InStr( startAt, link, "/" )
If stopAt = 0 Then
nav = link
Else
nav = Mid( link, startAt, stopAt-startAt )
End If
here is the footer link it calls the 'link' from
<%WriteFooterLink "/home/about_us.asp", "ABOUT US", "about us"%>
I want it to startAt the first / and stop at the second / so that home as the directory would be the navID
|