LIttle problem with Flex and sqlite query? -


Just a quick question about a small problem I'm making a Flex app that I'm making.

This is my first time tying to create an app using a local database and I'm getting an error in my query.

  Private function empty-rows (eventObj: CloseEvent): zero {var stmt: SQLStatement = new SQLStatement (); Id = datagrid_id.selectedItem.personid; If (eventObj.detail == Warning. Oak) {stmt.sqlConnection = sqlCon; Stmt.text = "Delete person WHERE pers_id =" Id; Stmt.execute (); retrieve data(); }}  

The error message I'm getting - possibly undefined property ID will be entered through a static type of reference

I am doing wrong. Thanks!

You must declare the same as the ID variable

  Blank (Event obih: CloseEvent): Zero {var stmt: SQLStatement = New SQLStatement (); Var ID: string = datagrid_ID.edited item.personid; If (eventObj.detail == Warning. Oak) {stmt.sqlConnection = sqlCon; Stmt.text = "Delete person WHERE pers_id =" + id; Stmt.execute (); retrieve data(); }}  

Also note that string attachment is not + . in


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -