BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   RecordStore and jad file that references multiple .cod files (http://www.blackberryforums.com/developer-forum/156332-recordstore-jad-file-references-multiple-cod-files.html)

MikaŽl Donini 10-24-2008 11:08 AM

RecordStore and jad file that references multiple .cod files
 
Hi All,

My application is a .jad file that references multiple .cod files. I have used updatejad.exe to build such a .jad.

In the first .cod file, I have implemented a RecordStore:

Code:

// store creation
RecordStore countriesStore = RecordStore.openRecordStore("COUNTRIES", true, RecordStore.AUTHMODE_ANY, true);
//  populate the store
String value = "France";
countriesStore.addRecord(value.getBytes(), 0, value.length());
// retrieve the value
String retrievedValue = new String(_countriesStore.getRecord(1))

This works perfectly.

But, I would like to access this record store in the second module (second .cod file that belongs to the same .jad file).

Is it possible?

Thanks a lot for your time and answer.

MikaŽl Donini, Arkadin France.


All times are GMT -5. The time now is 07:56 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.