select text after string(solved)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

select text after string(solved)

Post by vedus » Tue Dec 10, 2013 7:03 pm

i have a line inside of field that i get from xml file.
the line is

Code: Select all

(john,maria,artemis)\ and some other information here
is possible the select the text after the slash and cut it and paste it in other fld?
thx
Last edited by vedus on Tue Dec 10, 2013 8:15 pm, edited 1 time in total.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: select text after

Post by Dixie » Tue Dec 10, 2013 7:12 pm

Vedus...

Code: Select all

on mouseUp
   put "(john,maria,artemis)\ and some other information here" into temp
   set itemDel to "\"
   put item 2 of temp
end mouseUp
The above will put 'and some other information here' into the msg box

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: select text after

Post by vedus » Tue Dec 10, 2013 8:14 pm

thank you dixie
here is my solution with unicode..

Code: Select all

  -->unicode clean
   put unidecode(the unicodetext of fld "paragwga","utf8") into temp
   set itemdel to "-"
   put item 2 of temp into tTemp
   set the unicodetext of fld "f100" to uniencode(tTemp,"utf8")

Post Reply