Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

recordstore problem write and update

hi, can any one test this code please, i try to write in the recordstore some data but the result in the output is

data2 : [0.0],  what s the problem? 


DataBase.writeRecord(UTF8Decoder.encode("1234"), DataBase.Registrations);
                                    String data2 = DataBase.readRecords(1, DataBase.Registrations);
                                    System.out.println("data2 : " + data2);


and if do:

DataBase.writeRecord(UTF8Decoder.encode(""), DataBase.Registrations);


                                    String data3 = DataBase.readRecords(1, DataBase.Registrations);
                                    System.out.println("data3 : " + data3);

the result is:

data2 : [0.0] !!!