Henrik Wikström Posted June 29, 2004 Share Posted June 29, 2004 Har skapar man en varibel som skriver ut vilken mapp man är i? T.ex om jag är i på url:n www.minsajt.se/bilder/sommar2004/index.asp Hur skriver jag ut strängen "sommar2004" ? Link to comment Share on other sites More sharing options...
Anjuna Moon Posted June 29, 2004 Share Posted June 29, 2004 Här är ett sätt: idx1=[color="#0000ff"]InStrRev[/color](strUrl,[GRÅ]"/"[/GRÅ]) idx2=[color="#0000ff"]InStrRev[/color](strUrl,[GRÅ]"/"[/GRÅ],idx1-1) [b]Response[/b].write [color="#0000ff"]Mid[/color](strUrl,idx2+1,idx1-idx2-1) AnjunaMoon ____________________________________________________________ /* There is nothing more permanent than a temporary solution... */ Link to comment Share on other sites More sharing options...
Henrik Wikström Posted June 29, 2004 Author Share Posted June 29, 2004 Det står så här: Microsoft VBScript runtime error '800a0005' Invalid procedure call or argument: 'Mid' /norr/Default.asp, line 435 Link to comment Share on other sites More sharing options...
Anjuna Moon Posted June 29, 2004 Share Posted June 29, 2004 posta hela koden kring dessa rader. Link to comment Share on other sites More sharing options...
Henrik Wikström Posted June 29, 2004 Author Share Posted June 29, 2004 Jag har löst det. Tack för hjälpen Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.