Copy link to clipboard
Copied
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"}]);
}
The catch section code line should be:
trace(err.message);
Copy link to clipboard
Copied
The catch section code line should be:
trace(err.message);
Copy link to clipboard
Copied
Thank You
Copy link to clipboard
Copied
You're welcome
Find more inspiration, events, and resources on the new Adobe Community
Explore Now