LucaMs Expert Licensed User Longtime User Jun 7, 2015 #1 GetString (and I suppose Get"AnyType") returns an object, then this is not a bug but the help should be correct. Code: Copy ... Dim Result As String If Cur.IsInitialized AND Cur.RowCount > 0 Then Cur.Position = 0 Result = Cur.GetString(FieldName) if Result = "" Then <--- gets error If Result = Null Then <--- OK
GetString (and I suppose Get"AnyType") returns an object, then this is not a bug but the help should be correct. Code: Copy ... Dim Result As String If Cur.IsInitialized AND Cur.RowCount > 0 Then Cur.Position = 0 Result = Cur.GetString(FieldName) if Result = "" Then <--- gets error If Result = Null Then <--- OK
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2015 #2 GetString returns a string. The value can be null if the SQL engine returned null.