Italian Caratteri Riservati nelle quary

luciano deri

Active Member
Licensed User
Longtime User
Indicativamente devo fare una cosa così
B4X:
dim str as string
MyQuery="SELECT * FROM tblPatients WHERE Last_name LIKE ?"
str = "'%" & edittext.txt & "%'"
Cursor1=SQL1.ExecQuery2(MyQuery,ArrayAsString(str))

se edittext.txt contiene un carattere riservato, un apice un percento ecc, funziona?
 

luciano deri

Active Member
Licensed User
Longtime User
Avevo provato ma non funzionava ma forse l'errore è mio, l'apice nel % non serve?
B4X:
str = "'%" & edittext.txt & "%'"
 
Top