Update StdLib - Add JustFileName()
@@ -113,6 +113,21 @@ func JustFilePath cFile
next
return cFile
+/*
+ Function Name : JustFileName
+ Usage : get the Name of the file only - remove file path
+ Parameters : File Name
+*/
+
+func JustFileName cFile
+ for x = len(cfile) to 1 step -1
+ if cfile[x] = "\" or cfile[x] = "/"
+ cfile = substr(cfile,x+1)
+ exit
+ ok
+ next
+ return cFile
+
/*
Function Name : value
Usage : create a copy from a list or object
