locked
CHECK IF ORACLE FUNCTION RETURN TRUE RRS feed

  • Question

  • User1449453972 posted

    HOW DO I CHECK WITH DATA READER IF A FUNCTION RETURNS TRUE?

    IF

    TRY   ORACLE FUNCTION

    CATCH

    END TRY

    END IF

    Friday, May 24, 2013 2:18 AM

Answers

  • User1293050055 posted

    if you  difined column DataType bit then you can check

    if(dr.GetBoolean(0)); //

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 24, 2013 7:05 AM

All replies

  • User1293050055 posted
    if(dr.GetBoolean(0)); // where dr is a SqlDataReader class object

    Friday, May 24, 2013 3:19 AM
  • User1449453972 posted

    if(dr.GetBoolean(0)); // where dr is a SqlDataReader class object

    I WILL USE DR DATA READER

     cmdMain.CommandText = "SELECT FUNCTION ...
                dr = cmdMain.ExecuteReader()
                dr.Read()

    WILL dr.GetBoolean(0  RETURN TRUE OR FALSE?

    Friday, May 24, 2013 3:59 AM
  • User1293050055 posted

    if you  difined column DataType bit then you can check

    if(dr.GetBoolean(0)); //

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 24, 2013 7:05 AM