Finding in reverse

Klaus Major klaus at major-k.de
Wed Jul 5 12:14:01 EDT 2006


Hi Bill and Robert,

> Two lines:
>
> set the itemdelimiter to "/"
> put the last item of myFilePath
>
> "Robert Sneidar" <bobs at twft.com> wrote in message
> news:9A014ADB-DFE5-4745-B4FD-1C7362CC6A34 at twft.com...
>> Is there a way to scan a text string from end to beginning for   
>> something
>> without using a loop? I am trying to "be binary" (for those  of you
>> conference goers) and I am trying to extract just a file's  name  
>> from the
>> full path. It seems to be something of a difficult  thing to do in  
>> a one
>> liner.

or a one-liner (whith a little bit of cheating!)

...
set the itemdelimiter to "/"; put last item of myFilePath
...

:-)


Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list