Database insert operation

16 views
Skip to first unread message

exquisi...@gmail.com

unread,
Oct 22, 2016, 3:06:50 AM10/22/16
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans
Desktop win7
Simulator
Device


hi i am trying to do the following 

 Database db=null;
 Cursor cur=null;

  Integer ID=id; 
 Object[]param={ID,name,Fathername,Address,Mob,Gender,Qualification};

 
 try{
 db=Display.getInstance().openOrCreate("students.db");
 
 db.execute("insert into clStudent values('?','?','?',?,'?','?','?')", (Object[]) param[1]) ;
 
and getting the error array index out of bounds and cast exception could you please give me hints where i am making error.

Shai Almog

unread,
Oct 22, 2016, 9:50:04 PM10/22/16
to CodenameOne Discussions, exquisi...@gmail.com
Reply all
Reply to author
Forward
0 new messages