> From: David Cramer <[EMAIL PROTECTED]>
> Subject: Re: Offset from right function?
> Date: Fri, 11 Feb 2000 19:36:08 -0600
> MIME-Version: 1.0
> Content-Type: text/plain; charset="us-ascii" ; format="flowed"
>
> Aha! That's probably what I remembered seeing.
>
> I guess what I was hoping I had seen was a way of using the "offset"
> function with a from-right variation. Because it occurred to me that
> I could then do something like...
>
> put the short name of this stack into thisStack
> put the long name of this stack into thePath
> delete char (offsetBack(thisStack,thePath) to the length of thePath) of thePath
>
> ...and I would know that I was left with the correct path to a stack
> even if the its long name were something like:
>
> /PowerBook/MetaCard/MyStuff/MyStuff.mc
>
> Never mind 8-(
>
> Regards,
>
> David
To get the path of a stack, you can write
set the itemDelimiter to "/"
put item 1 to -2 of the long name of this stack into thePath
Regards, Claude
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm