How safe is the data in the datagrid?
Bob Sneidar
bobs at twft.com
Tue Aug 17 13:32:06 EDT 2010
I think you will have to eventually either dump your data to a text file whenever it's modified, or else if you intend to produce a compiled app, consider having your main app as a stack attached to your startup app, which cannot be modified. That way you can simply store the contents in a custom property in the datagrid, which is what I do.
Bob
On Aug 17, 2010, at 8:57 AM, Andrew Kluthe wrote:
>
> Hey all,
>
> I am currently working on a database app that needs to work whether it is
> connected to the db or not.
>
> For this, I just check the connection before each transaction and if it is
> connected it puts the data into a mySQL.
>
> If it is not connected, I have it storing it in a datagrid queue until the
> next connection is detected.
>
> Once connected, my program loops through the dataGrid and inserts it into
> the DB. After a successful insertion that index gets deleted from the
> dataGrid.
>
> My original idea was to store these locally as a tab delimited text file or
> as xml.
>
> How safe is the data in the dataGrid from program crashes and in between
> sessions of use? The local data must be kept intact until it can be
> successfully loaded into the DB.
>
> Should I dump to an xml or txt file as a backup plan, or is this
> unnecessary?
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/How-safe-is-the-data-in-the-datagrid-tp2328573p2328573.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list