Here's a routine I wrote a while ago to do this:

on BackupOneLevel sPathIn
  sPathOut = sPathIn
  theDelim = the last Char of sPathIn
  delete the last char of sPathOut -- delete delim

  repeat while TRUE
    lastChar = the last Char of sPathOut
    if lastChar = theDelim then
      exit repeat
    end if
    delete the last char of sPathOut
  end repeat

  return sPathOut
end

Enjoy,

Irv

At 2:12 PM -0500 11/8/02, Carol Mahaffy wrote:
hey list --
is there a way to go back up a file structure? my file structure is like
this:
intro.dir
english/intro.dir
french/intro.dir
i know how to go deeper using get moviePath, @ ect. but is there a way to go
back up like on the web (ie ../ or ./). have been looking but am not sure if
parsing the moviePath is the greatest idea or the only idea. please no
xtras. just straight code. thanks
-- carol
[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!]

--

Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.)
[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!]

Reply via email to