3 Replies Latest reply on Apr 17, 2009 12:11 PM by Michael Borbor

    Does event.statusCode = 0 mean database update is successful?

    salut

      I'm trying to insert and update data to the sql database.The even.statusCode returns 0. Does it mean the update is successful? Is the code below correct?

       

       

      private function createMessageResultHandler(event:ResultEvent):void
      {    
                   Alert.show("event.statusCode = " + event.statusCode);

       

                     if (event.statusCode == 0)

                     {

                            Alert.show("Database update is successful.");

                     }

                    else

                    {

                          Alert.show("The database update has failed. Contact xxxx");

                    }               
      }    

       

      Thanks in advance.