Mid (string,position,number of words) position from 0
LTrim - delete left spases
RTrim - delete right spases
Trim - delete left and right spases
use
Code:
if uo.injournal('Dago MegaDeatH') then
..
s=uo.JournalSerial(uo.InJournal('Dago MegaDeatH')-1)
fraza=uo.journal(uo.InJournal('Dago MegaDeatH')-1)
uo.print("lench of this fraza "+str(len(fraza)))
for i=0 to (len(fraza)-3)
l=mid(fraza,i,3)
if l == 'va ' then #search the string 'va ' of(proVA 123)
sec1=i+3 #start position of '12345'
end if
next
sec2=number_lench #lench '123456' - lench=6
variable=mid(fraza,sec1,sec2)
..
end if