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
> ___________________________________________________________
> [EMAIL PROTECTED] http://www.FourthWorld.com
> Tel: 323-225-3717 AIM: FourthWorldInc
>
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution