At 09:08 PM 4/4/2002 +0100, you wrote:
>Hi guys, i'm having a bit of trouble here with writing data to my database.
>it writes fine but when i go to make a second entry for the same day (ie
>index!==-1), the previous entry is overwritten.  here is my addtodatabase
>fn....

Your code looks like it is doing exactly what you are asking it to do. If 
it finds a record that matches the input (day), then resize it and 
overwrite it.

I think you need to define what happens when you want to write two (or 
more) entries on the same day.

Matt


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to