On 11/12/06 9:51 PM, "Scott Kane" <[EMAIL PROTECTED]> wrote:
> Hi folks, > > Been away from programming a bit due to health issues (almost nine months). > Anyway I've been trying to nut out how to get the file name from a complete > path. I know it should be a matter of using delminiting but I can't get it > to work. > > For example this path: > > c:\MyDocuments\Images\myimage.jpg > > What I want to extract is just the file name "myimage.jpg". > > I've searched the doc's etc and seem to be going in circles. Would really > appreciate any solution you may have. Hey, Scott! Welcome back! First of all, remember that all paths inside Rev are forward-slash delimited (/), not backslash-delimited, although the following suggestion will work regardless (just substitute the proper slash): put "C:/My Documents/Images/myimage.jpg" into tPath set the itemDel to "/" put item -1 of tPath into tFileName --> tFileName now contains "myimage.jpg" HTH, Ken Ray Sons of Thunder Software, Inc. Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
