cimperia Active Member Licensed User Longtime User Jul 29, 2015 #1 I am using the BA4 IDE 5.02 (1), on windows7 with .NET > 5 Code: Log(Miscellaneous.Sprintf($"UPDATE cards SET name = '%s' , short_name = '%s', WHERE (id = '%s')"$, Array As Object( m.name _ , m.index _ , m.symbol))) But the colors are not right. They are correct in the code posted here, but in the IDE this bit: Array As Object( m.name _ is green, as if it were a comment. You can find the Sprintf module here: https://www.b4x.com/android/forum/threads/sprintf.10860/#content.
I am using the BA4 IDE 5.02 (1), on windows7 with .NET > 5 Code: Log(Miscellaneous.Sprintf($"UPDATE cards SET name = '%s' , short_name = '%s', WHERE (id = '%s')"$, Array As Object( m.name _ , m.index _ , m.symbol))) But the colors are not right. They are correct in the code posted here, but in the IDE this bit: Array As Object( m.name _ is green, as if it were a comment. You can find the Sprintf module here: https://www.b4x.com/android/forum/threads/sprintf.10860/#content.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2015 #2 It is a known issue. Note that you don't need sprintf. You can instead use: Code: Log($"UPDATE cards SET name = ${m.name} , short_name = ${m.index}, WHERE (id = ${m.symbol})"$) See the tutorial: https://www.b4x.com/android/forum/threads/50135/#content
It is a known issue. Note that you don't need sprintf. You can instead use: Code: Log($"UPDATE cards SET name = ${m.name} , short_name = ${m.index}, WHERE (id = ${m.symbol})"$) See the tutorial: https://www.b4x.com/android/forum/threads/50135/#content