• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMS problems

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.. I'm supported to write a rms codes where I can add record, delete record and check whether the record store is empty or not..First, when I start the program, it will go to the record store and check whether there is any record inside. If there is record inside, it will get out of the record store and run the main operation. However, if there is no record found, it will create a record store and add record inside. After adding the record, it will get out of the record store and go to the main operation. At anytime in between the main operation, I can go back to the record store and delete old record and add new record.


This is the RMS code that I have written:


I'm not very sure of the RMS setting and do you think this program code is oki and at the same time, can this program code work and give me the outcome that I have mentioned? Thanks hope someone can help mi

[ August 28, 2005: Message edited by: tracy teo ]
[ August 29, 2005: Message edited by: Mark Spritzler ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well it has a spelling error here



And here you can just use the else, instead of the second if statement



This type of code is very common. If you go to java.sun.com and click the J2ME link, then the Technical Articles link on the left, you will find good articles on RMS and that will have the code you are looking for.

Mark
 
tracy teo
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi thanks for your reply..I have went to the java.sun and looked at the code.. Yup quite a detail explaination .. Thanks..
 
reply
    Bookmark Topic Watch Topic
  • New Topic