On Mon, November 6, 2006 9:53 pm, Joel Newport wrote:
> Hey list,
>
> If after I reopen I add a new row, or delete a row, it works fine.
> It's almost like the rows in listbox don't exist if I don't alter
> them.  Also simply changing a value in an existing row doesn't work.
> I have to add or delete a row.

You've got your save code in the app.close event -- could it be the window
closes (disappears) before the app.close event fires and so there's
nothing in the listbox to write? That wouldn't explain why it works
sometimes and not others, though.

I'm not sure what the problem is, but I'd probably rethink your structure:
why not create a Save method and call it from the listBox's Action event?
That way any time the list data is modified, it gets saved (as long as you
don't have a huge amount of data the time to save shouldn't be an issue).
That's better than in the app.close event because if your app crashed or
the computer was unplugged or whatever, data would be lost before the app
would be quit.


-- 
Marc Zeedar
Publisher
REALbasic Developer Magazine
http://www.rbdeveloper.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to