09-08-2008, 05:49 AM
This works...
Function Function16
I'm not sure why .format doesn't just let [37] be a % without using it as part of the function...it caught me up for a bit. Find replace will do the trick...you can use more complicated combinations of characters to make sure it replaces what it is supposed to.
Function Function16
str outform
if(!inp(outform "" "" "[]")) ret
ARRAY(str) a=outform
int i
for(i 0 a.len)
,_s.format("out [34]%s = _s[34] %s" a[i] a[i])
,_s.findreplace("_" "%")
,out _s
I'm not sure why .format doesn't just let [37] be a % without using it as part of the function...it caught me up for a bit. Find replace will do the trick...you can use more complicated combinations of characters to make sure it replaces what it is supposed to.