Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtain filename without the path in opendialog 1

Status
Not open for further replies.

doctorjellybean

Programmer
May 5, 2003
145
When I use the TOpenDialog, I want to assign the filename of the file opened to a string, without the full path. So that D:\Temp\Test.txt becomes Test.txt

I used to be able to do this some years ago, but due to old age I just can't remember how [ponder]

Thanks in advance.
 
Oh bugger, of course. Something as simple as that [smile]

Thanks once again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top