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

Changing a file address to a number

Status
Not open for further replies.

melkober

Technical User
Jun 14, 2006
8
CA
I need to change a file address for a picture to a number that is in the file (ie file address:"C:\Solenoid\0002.png" to the number: "2"). Any ideas how this could be done?
 
Something like this ?
myNumber = Val(Mid(myFile, 1 + InStrRev(myfile, "\")))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top