Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Rightparen error

Guest
Jul 18, 2013 Jul 18, 2013

I keep getting this error 1084: Syntax error:expecting rightparen before message

here's the code

                                  

private function populateDatabase():void

                              {

                                        var createTable:SQLStatement= new SQLStatement();

                                        creataTable.sqlConnection=sqlConnection;

 

                                        createTable.text= "CREATE TABLE IF NOT EXISTS highscores("

                                                                                          +"id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, scores INTEGER)";

 

                                        try

                                        {

                                                  createTable.execute();

                                        }

 

                                        catch(err:Error)

                                        {

                                                  trace(err message);

                                        }

 

                                        addItems([

                                                              {name:"Bob", scores:"123"}]);

 

                              }

TOPICS
ActionScript
808
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 19, 2013 Jul 19, 2013

The catch section code line should be:

           trace(err.message);

Translate
LEGEND ,
Jul 19, 2013 Jul 19, 2013

The catch section code line should be:

           trace(err.message);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 21, 2013 Jul 21, 2013

Thank You

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 21, 2013 Jul 21, 2013
LATEST

You're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines