I'm trying to determine if a string ends with a forward slash in classic ASP.
if right(upath, 1)="/" then
upath=left(upath,len(upath-1))
end if
The value of upath is in this instance is "/ct3test/aces/aces_roi/".
But I keep getting the error:
Microsoft VBScript runtime error '800a000d' Type mismatch: '[string: "/ct3test/aces/aces_r"]'
I've tried Chr(47) with the same results. It doesn't like the forward slash and escaping it with "\" doesn't seem to help.
Any help would be greatly appreciated.