What am i doing wrong here?
var URL = String(RS("FileName"));
var ID = URL.LastIndexOf("\\");
ID = URL.substr(ID);
RS is a recordset from a database that shows a FilePath, I left out the
DB code..
for example RS("FileName") might equal C:\test\temp.txt
I want to extract the filename (temp.txt)
It keep erroring saying Error:Object doesn't support this property or
method
at the lastindexofline...
Any Ideas?