LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
i would like to select the first 7 char after a find command and put it into a field....in other words take the right end of a word founded with find command...and put them into a field.....
can you or other tell me a simple script to use foundchunk function???to select a 7 chars after a find command... for example: "pippo play with me"....and i need for example .... find"pippo" and then select the chars "play"....i thank you so much...
on mouseUp
find "pippo" in fld 1
put the foundchunk into tFC
find ""
put word 4 of tFC into tEnd
put char tEnd +2 to 30 of fld 1 into tCont
put offset(" ",tCont) into tEndWord
select char (tEnd +2) to (tEnd + tEndWord) of fld 1
put tEnd && tEndWord && tCont
end mouseUp
Thanks a lot Jean-Marc!!! You helped me a lot......There's no word to thank you....
I have tryed your example...but the second...but also powerful....because more simple and easy to understand for me....ok now i will implement this in my android app....hoping that this willl work.....