Page 1 of 1

Can FileRequest return just the file, not the path?

Posted: Wed Jan 27, 2016 1:35 pm
by Bugala
I am using FIleRequest for user to choose a file which to use for saving. Problem is, instead of just giving me the filename that user chooses, it gives me the whole path.

Is there a simple way to just get the filename without a path, or do i have to use SpltStr or something with "/" to figure out what is the file part?

Re: Can FileRequest return just the file, not the path?

Posted: Wed Jan 27, 2016 1:51 pm
by p-OS
You can take the result of FileRequest and pass it to the FilePart() function....

Re: Can FileRequest return just the file, not the path?

Posted: Wed Jan 27, 2016 7:37 pm
by Bugala
Ah, completely missed that one. It was in the filerequest example code even.
I read that real bad since i was complaining in my mind to Andreas of why didnt he put in to hes example codes how to get just the files name...