Chri, which version of LC are you using?

My version 4.5 does not delete the itemDel, just the contents.

put empty into item 4 of tString --keeps the "/"
delete item 4 of tString  -- purges the slash

-- this should work to make a shorter path string
replace "/" with itemDel in tString
delete item itemOffset("public.html", tString) of tString
--purges the item
replace itemDel with "/" in tString

Jim Ault
Las Vegas

--- On Mon, 8/1/11, Nonsanity <f...@nonsanity.com> wrote:

From: Nonsanity <f...@nonsanity.com>
Subject: Re: How do I remove part of a path?
To: "How to use LiveCode" <use-livecode@lists.runrev.com>
Date: Monday, August 1, 2011, 7:25 AM

set itemdel to "/"
put "" into item 4 of it

There should be no double slash then. That line removes that whole item.

 ~ Chris Innanen
 ~ Nonsanity


On Sun, Jul 31, 2011 at 10:55 PM, Michael Kann <mikek...@yahoo.com> wrote:

> Pete,
>
> I checked to see if the itemDelimiter trick left behind a "/" and found
> that it does.
>
>
> http://www.travelandworkusa.com//userfiles/Felker_Mike/robot_trans_noshadow.png
>
> -- notice the 2 forward slashes where there should be uno.
>
> Mike
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to