Bug? SQL Cursor.Getxxx

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

  1. LucaMs

    LucaMs Expert Licensed User

    upload_2015-6-7_15-26-55.png

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

    Code:
    ...
    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    GetString returns a string. The value can be null if the SQL engine returned null.
     
Loading...
  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