Find all links in fld

J. Landman Gay jacque at hyperactivesw.com
Fri Jan 16 17:16:26 EST 2015


On 1/16/2015 4:09 PM, Shawn Blc wrote:
> Phil that was the one that worked like I was hoping.   Thanks John and
> Phil!   Don't need the extra Php file now!

Here's another way:

on mouseUp
   put fld 1 into tText
   put 0 into tSkip
   repeat
     get offset("https://www.domainb.com/",tText,tSkip)
     if it > 0 then
       put the number of words in char 1 to (it + tSkip) of tText into 
tWordNum
       put word tWordNum of tText & cr after tList
       add it to tSkip
     else
       exit repeat
     end if
   end repeat
end mouseUp

Lots of ways to do stuff in LC.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list