GetCurrentDirectory()

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

GetCurrentDirectory()

Post by Peter »

Hello Fred,

it would be nice, if we had a native GetCurrentDirectory():

Code: Select all

Procedure.s GetCurrentDirectory() ; Returns the current path for the application. 
  ! var href = window.location.href;
  ! return href.substring(0, href.lastIndexOf('/')) + "/";  
EndProcedure

Debug GetCurrentDirectory()
Image

Thanks in advance & Greetings ... Peter