"F:\All Risk
Training\modules\serviceInterruption\serviceInterruption.cst"

...that I want to find the last position of "serviceInterruption" and
chop it off so that the string is "F:\All Risk
Training\modules\serviceInterruption\".

If the cast happens to be next to the movie, you end up with the same as the moviepath. The general solution of getting the folder path from a file path, would be this:


oldid = the itemdelimiter
the itemdelimiter = the last char of the moviepath
delete the last item of filepath
folderpath = filepath & the itemdelimiter
the itemdelimiter = oldid

That would work cross platform.

[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