03-03-2009, 12:29 PM
Member function str.glue_strs
function str'a str'b [str'separator]
;EXAMPLE:
;str a="a[]b[]c[]d[]e"
;str b="pru1[]pru2[]pru3[]pru4"
;str c.glue_strs(a b " - ")
;out c
ARRAY(str) aa(a) bb(b)
int l=iif(aa.len>bb.len aa.len bb.len)
ARRAY(str) t.create(l)
int i
for i 0 l
,t[i].from(aa[i] separator bb[i])
,err
,,t[i]=aa[i]
,,err
,,,t[i]=bb[i]
this=t