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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splitting filename string 1

Status
Not open for further replies.

LEICJDN1

Technical User
Nov 27, 2002
201
GB
Need to output only part of a filename to results file after main portion of program completed.

Typical openpicturedialog.filename result is c:\files\ecgs\...\100001.JPG

I need to extract only the '10001' part to act as the name for that row of comma seperated values in the results file.

How can I derive this from the filename string?
Is it some use of filters or is there a better way?

Thanks.
 
Thank you,

Combined with changefileext function and works a treat! Spent ages combing help file for file name functions but failed to unearth both of those!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top