Filter substring
Hans Ydelm
hansydelm at ntlworld.com
Tue Jul 8 22:43:01 EDT 2003
Thanks Paul,
Works like a treat :-)
Regards,
Hans.
www.ht-lab.com
On Tue, 2003-07-08 at 11:26, Richard Gaskin wrote:
> Hans Ydelm wrote:
>
> > Probably a simple question but since I am a beginner :-) How can you
> > extract a substring from a string? I would like to change an absolute
> > path name to a relative one, e.g,
> >
> > /home/hans/project/fileorder/src
> >
> > change to:
> >
> > fileorder/src
>
>
> on mouseUp
> put ClipPath("/home/hans/project/fileorder/src", "/home/hans/project")
> end mouseUp
>
>
> function ClipPath pPath, pPartToClip
> set the itemDel to "/"
> get the number of items of pPartToClip
> delete item 1 to it of pPath
> return pPath
> end ClipPath
>
>
>
> --
> Richard Gaskin
> Fourth World Media Corporation
> Developer of WebMerge 2.2: Publish any database on any site
> ___________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
> Tel: 323-225-3717 AIM: FourthWorldInc
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list