This way is more complicated than it needs to be; simply add another path delimiter for every directory you wish to move up.
@/file is the current directory @//file is one level up @///file is two levels up etc. Charlie Fiskeaux II Media Designer The Creative Group www.cre8tivegroup.com 859/858-9054x29 ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 2:24 PM Subject: Re: <lingo-l> moviePath Sure tChar = the last char of the moviepath set the itemdelimiter = tChar Then you can get your paths by something like this: tPath = the moviepath delete the last char of tPath delete tPath.item[tPath.item.count] So if you have the moviepath as "drive/dir1/dir2/dir3/whatever/mymovie.dir" then tPath is "drive/dir1/dir2/dir3/whatever/" First delete the last character (the final path seperator) then just delete the final item to go back up one dir. [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
