dunbarx at aol.com
dunbarx at aol.com
Fri Feb 18 17:11:26 CST 2011
The DG is in a substack of a mainstack splash screen. There is a field in that substack as well. A button loads a random number into each. Or tries to, anyway. The field gets a new number, the DG does not budge. The IDE stack works fine. The DG template is attached as a stackFile before I make the standalone.
I am talking about saving between standalone sessions. If I change the data, close the standalone, and re-open, the new field data is there. Great. The DG never changed in the first place, so I may have mis-stated the problem. It may not be a matter of saving the DG at all. If I cannot change the DG data in the first place, who could say?
This all started from a forum question about saving a DG. He could not. I tried a test, and I cannot even modify the DG contents. Did I mention that the field saves just fine?
From: Peter Haworth <pete at mollysrevenge.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Feb 18, 2011 5:37 pm
Subject: Re: Saving datagrids
Are we talking about saving data between runs of the standalone or just
re-opening the stack in the same run of the standalone? As other have pointed
out, there is no way to save data between runs of a standalone without the usual
workaround they mentioned. But I think datagrids have a "persistant Data"
property that affects whether the data in them is saved when the stack they are
in is closed and then re-opened in the same run.
Not sure what's happening with your follow up email about the dg not being
populated, that sounds very weird.
On Feb 18, 2011, at 11:28 AM, DunbarX at aol.com wrote:
> This came up in the forum, trouble saving a datagrid in a standalone. I
glibly told the original poster that there should not be any issue.
> To test I made a splash stack and a substack; the usual. The substack has a
datagrid, a field and a button. The button put random numbers
> into both the datagrid (via setting the dgText) and the field. The stacks are
saved on closeStack.
> After making the standalone, clicking the button loads data. But only the
field data is saved. I checked back in the standalone
> settings, and wonder if either I am missing something there, or datagrids do
not save at all. The forum thread had evolved to having to save the
> datagrid data in an external file, and reloading next session. That seems
> Craig Newman
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the use-livecode