Filter substring
Richard Gaskin
ambassador at fourthworld.com
Tue Jul 8 05:34:00 EDT 2003
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
More information about the use-livecode
mailing list