Re: change error message

From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 02/19/05

  • Next message: Brian Bushay TeamB: "Re: ADO AV"
    Date: Fri, 18 Feb 2005 21:07:10 -0600
    
    

    >Yes but i want to only catch the error duplicate value in the index and
    >change his message.One example exist in the demos folder in DB/Errors but is
    >for Borland database system is not working in the access that i want to
    >do.Sorry for my bad english and thanx for your valuable time.(Solution with
    >ErrorCode???)

    If you want to use the errorCode you have to look at the AdoConnection.errors
    collection.

      For i:=0 To ADOConnection.Errors.Count-1 Do Begin
       
        ADOConnection.Errors[i].Source;
        ADOConnection.Errors[i].Description ;
        ADOConnection.Errors[i].SQLState;
       ADOConnection.Errors[i].number;
       ADOConnection.Errors[i].nativeError;

        End;

    --
    Brian Bushay (TeamB)
    Bbushay@NMPLS.com
    

  • Next message: Brian Bushay TeamB: "Re: ADO AV"