Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

rowCount don`t count

$
0
0

Hi, i have a function, but my rowCount don´t count.

db = Ti.Database.open('laBD');
 
 if (NRow!=null){
        rows = db.execute('SELECT * FROM Home WHERE Home.Serie = ?',NRow);
        NRegistros=rows.rowCount;
 
 
        if (NRegistros!=0){
 
            db.execute('DELETE FROM Home WHERE Home.Serie = ?',NRow);
 
        }
    }
sometimes NRegistros=0 when i know there is a register with Serie=NRow

Why???

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>