Bug? SQL Cursor.Getxxx

Discussion in 'Bugs & wishlist' started by LucaMs, Jun 7, 2015.

  1. LucaMs

    LucaMs Expert Licensed User


    GetString (and I suppose Get"AnyType") returns an object, then this is not a bug but the help should be correct.

    Dim Result As String

    If Cur.IsInitialized AND Cur.RowCount > 0 Then
        Cur.Position = 
        Result = Cur.GetString(FieldName)
    if Result = "" Then   <--- gets error
    If Result = Null Then <--- OK
  2. Erel

    Erel Administrator Staff Member Licensed User

    GetString returns a string. The value can be null if the SQL engine returned null.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice