02-07-2013, 05:26 AM
here is an example using function find and function get
it finds the text either before your bookmark or after your bookmark
;;finds whatever comes before <<**>>
str a="this is all the text before your bookmark<<**>>this is all the text after your bookmark"
int u=find(a "<<**>>")
a.get(a 0 u)
out a
;;
;finds whatever comes after <<**>>
str c="this is all the text before your bookmark<<**>>this is all the text after your bookmark"
int t=find(c "<<**>>")
str d=c.len
int x=val(d)
c.get(c (t+6) x)
out c
it finds the text either before your bookmark or after your bookmark
;;finds whatever comes before <<**>>
str a="this is all the text before your bookmark<<**>>this is all the text after your bookmark"
int u=find(a "<<**>>")
a.get(a 0 u)
out a
;;
;finds whatever comes after <<**>>
str c="this is all the text before your bookmark<<**>>this is all the text after your bookmark"
int t=find(c "<<**>>")
str d=c.len
int x=val(d)
c.get(c (t+6) x)
out c
