08-18-2015, 03:48 PM
F"string" creates a hidden local str variable to store the formatted string. Each loop uses the same variable and therefore overwrites it. F"strings" in other places use other hidden variables.
rep n
,s=F"string{x}"
is the same as
rep n
,str _hiddenLocalVariable1.format("string%i" x); s=hiddenLocalVariable1
In your case, all the lpstr strings are stored in s (the str variable). af[0] is s, af[1] is s+2, af[1] is s+4. Cannot concatenate. Use ARRAY(str), and then af[i]+"*".
rep n
,s=F"string{x}"
is the same as
rep n
,str _hiddenLocalVariable1.format("string%i" x); s=hiddenLocalVariable1
In your case, all the lpstr strings are stored in s (the str variable). af[0] is s, af[1] is s+2, af[1] is s+4. Cannot concatenate. Use ARRAY(str), and then af[i]+"*".
