I run a loop to insert data, it works well until I come to a name that have the ' character in it ( i.e. in Tongan Pa'anga).
I have try: sA(0).Replace("'", "ʻ") , but the ' will not be replaced.
sA() is a String array
Any idea?
/Thanks
I have try: sA(0).Replace("'", "ʻ") , but the ' will not be replaced.
sA() is a String array
B4X:
s = "?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?"
[COLOR="Blue"]For[/COLOR] x = 0 [COLOR="Blue"]to[/COLOR] y
sA(0) = R(x).Name: sA(0).Replace("'", "ʻ")
sA(1) = R(x).Code: sA(2) = R(x).Info
[COLOR="Green"]'More field to fill here...[/COLOR]
DB.ExecNonQuery2("INSERT INTO Table VALUES(" & s &)", sA)
[COLOR="Blue"]Next[/COLOR]
Any idea?
/Thanks