P peggjones Active Member Licensed User Longtime User Jun 20, 2013 #1 Can anyone explain this situation to me? xyz = Cursor1.GetString("Date") If Cursor1.GetString("Date") = date2 Then Both xyz and date2 = " 05/30/2013" but the test is never fulfilled. Is it possible that there is something with the debugger and that it is not showing the true contents of the fields? Many Thanks
Can anyone explain this situation to me? xyz = Cursor1.GetString("Date") If Cursor1.GetString("Date") = date2 Then Both xyz and date2 = " 05/30/2013" but the test is never fulfilled. Is it possible that there is something with the debugger and that it is not showing the true contents of the fields? Many Thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2013 #2 Make sure that there aren't any spaces in the strings. B4X: If Cursor1.GetString("Date").Trim = date2.Trim Then Upvote 0
Make sure that there aren't any spaces in the strings. B4X: If Cursor1.GetString("Date").Trim = date2.Trim Then
P peggjones Active Member Licensed User Longtime User Jun 20, 2013 #3 Thanks. That's sorted it. Upvote 0