Erf... I'm sorry too... I can't find a way to remove the directory name...
I tried that :
code:
FileName=FileName.substr(Directory.length,FileName.length-Directory.length);
Unsuccessfully...
And, I tried that too, just for testing :
code:
FileName=FileName.replace(/c/gi,"a");
Unsuccessfully too. It seems it's impossible to use these functions on the 'Enum.item()' value. Is it a 'special' string ?
Please help, i'm going to learn something too
Note : In my code : 'FileName=f1.item()'
----------------------------------------------
EDIT: LOL !!!!
Just use .replace() in the last string !!! 'LIST' :
code:
repl = new RegExp("("+Directory+")","gi");
Wnd.SendMessage(LIST.replace(repl,""));
Lol, just 5 minutes to find the solution