Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过文本框中的光标显示检索到的数据..它给出错误“光标超出范围......”
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null); editname.settext(c.getString(0));
刚用, c.moveToFirst()之前c.getString(0);
c.moveToFirst()
c.getString(0);
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null); if (c.moveToFirst()){ editname.settext(c.getString(0)); }