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 ]
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.