As a newbie, I'm experimenting, one of the things I would like to do is built a "string" to inject variables into SQLite. If I "write" the string it works i.e. : ""topic":"INSERT INTO LiveData(c01,c02,c03,c04,c05,c06,c07,c08" etc..
Works fine.
So I would like to build that string. Anyone explain why:
var myString= "c1"
for (int I=1; I<200; I++) {
myString=myString & ",c" & I;
}
Gives me an error "SyntaxError: Unexpected identifier (body:line 3)"
I thank you kindly. Spot on. I fiddled with an array, and went to "Strings" because usually I find diag easier. But you solved my problems and enhanced my knowledge in one