RecordStore type


The record store on the mobile phones is similar to files on computers: applications can save some data into record store and (when they are run again later) retreive the saved data. Similar to files, record stores are identified by name. Record stores cannot be grouped inside directories, and each installed MIDlet application can access only its own record stores. Unlike files (where data is stored sequentially), record store is more like an array structure where each record has its own index.

  var rs: recordStore;
      index: integer; 
      name: string;
  begin
    // write some data inside record store
    rs := openRecordStore('names');
    index := addRecordStoreEntry(rs, 'John Smith');
    closeRecordStore(rs);

    // read the data
    rs := openRecordStore('names');
    name := readRecordStoreEntry(rs, index);
    closeRecordStore(rs);
  end.

See also: openRecordStore, closeRecordStore, deleteRecordStore, addRecordStoreEntry, readRecordStoreEntry, deleteRecordStoreEntry, getRecordStoreSize