mrtzxxx
شنبه 31 خرداد 1393, 17:13 عصر
سلام . چطور بفهمم متغیرم مقداری داخلش هست یا چیزی پیدا نکرده؟
Cursor cup= mydb.rawQuery("select * from general where name LIKE '%"+namelist+"%' ",null);
با این دستور برنامه ارور میده
if (cup != null){
//Pprice=cup.getString(1);
//Pdate=cup.getString(2);
}else {
//Pprice="0";
//Pdate="--";
}
Cursor cup= mydb.rawQuery("select * from general where name LIKE '%"+namelist+"%' ",null);
با این دستور برنامه ارور میده
if (cup != null){
//Pprice=cup.getString(1);
//Pdate=cup.getString(2);
}else {
//Pprice="0";
//Pdate="--";
}