Guest User

Untitled

a guest
Dec 17th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Cursor sum_w = mydb.sumwithdraw();
  2. Cursor sum_d = mydb.sumdeposit();
  3. if (sum_w.moveToNext() ){
  4. bal = sum_d.getDouble(sum_d.getColumnIndex("myTotal_deposit")) - sum_w.getDouble(sum_w.getColumnIndex("myTotal_withdraw"));
  5. }
  6.  
  7. if (val<bal){
  8. Toast.makeText(this, "Insufficeient funds", Toast.LENGTH_SHORT).show();
  9. }
Add Comment
Please, Sign In to add comment