Can FileRequest return just the file, not the path?

Discuss any general programming issues here
Post Reply
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

Can FileRequest return just the file, not the path?

Post 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?
p-OS
Posts: 167
Joined: Mon Nov 01, 2010 11:56 pm

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

Post by p-OS »

You can take the result of FileRequest and pass it to the FilePart() function....
Bugala
Posts: 1178
Joined: Sun Feb 14, 2010 7:11 pm

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

Post 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...
Post Reply