| Yoko http://forum.yoko.com.ua/ |
|
| find a word in a string! http://forum.yoko.com.ua/viewtopic.php?f=20&t=9220 |
Page 1 of 1 |
| Author: | dagofee [ 2006-11-01 22:25:30 ] |
| Post subject: | find a word in a string! |
i have a string like this VAR STRING="I'm very very happe to be here" how can I see if in a string like this we have a specific word? i tried to separate each word but shit, it doesen't go sub main() var l,variable var i=0 var tmp=0 VAR frase="la mamma di fara e' una puttana di prima riga" VAR TROVA="puttana" while i<len(frase) for i=0 to len(frase) l=mid(frase,i,1) if l == ' ' then i=i+tmp+1 goto x end if next x: variable=mid(frase,tmp,i) tmp=i uo.print("-"+str(variable)+"-") wait(1000) wend end sub |
|
| Author: | Savage [ 2006-11-01 23:22:35 ] |
| Post subject: | |
Code: UO.InJournal("I'm very very happe to be here")
|
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|