Hello, excuse my english
I have a problem with an If Equals query of two strings.
It is a processing code for Android.
The variable “Datum2” is the current date as a string without an intermediate character. The other variable is read from a sqlite database. The result is always false. Although the sample in the console looks identical.
Does anyone have an idea what the inaccuracy is?
The Code:
db.query( “SELECT * FROM VJ” );
for (int i = 0; i < db.getRecordCount(“VJ”); i = i+1) {
db.next ();
println ("."+Datum2+"-"+db.getString(“Datum”)+".");
if (Datum2.equals(db.getString(“Datum”))== true){
println("-----------------------------------------");
pass=db.getString(“Passw”);
break;
Thanks in advance.