Hi Guys
I have a problem
This is supposed to animate a layout when a item on a first list is tabbed. Then it reads some data form the database.
Finally it should filter out some stuff which is in the databse and add it into a second list.
But going through the code gave me the bug that the marked if does not work.
It wold be niche if someone could help me solving that.
PS: Sorry for bad english.
//Variablesfdb = "";
function list_OnTouch(item )
{
fdb = item;
lst = [];
last.SetList( lst );
db.ExecuteSql( "select * from noten;", [], Draw ); <- my Database
back=6;
}
function Draw( results )
{
var len = results.rows.length;
for(var i = 0; i < len; i++ )
{
var content = results.rows.item(i)
if( content.data == fdb ){
<- This if doesn't work but why??? last.AddItem( content.data_Name, content.data_Val );
}
}
}