Check for first run

Maarten Koopmans maarten.koopmans at gmail.com
Mon Apr 18 02:36:07 EDT 2011


Yes, I was thinking along those lines but... Iw ant the user to point to a
root folder, where (among others) the db file will be stored :-) But I
should be able to take it from here.

--Maarten

On Sun, Apr 17, 2011 at 11:55 PM, Pete <pete at mollysrevenge.com> wrote:

> Even if the db does exist, just set a value into a column in in to indicate
> initialisation has occurred.
>
> Pete
> Molly's Revenge <http://www.mollysrevenge.com>
>
>
>
>
> On Sun, Apr 17, 2011 at 1:38 PM, Warren Samples <warren at warrensweb.us
> >wrote:
>
> > On Sunday, April 17, 2011 01:42:28 AM Maarten Koopmans wrote:
> > > Hi,
> > >
> > > Is there a best practice for checking if the application is on  a
> > > first run for a standalone(especially one that will go to an App store
> > > eventually)?
> > >
> > > I simply need to ask the user a few questions on first run (and set up
> > > a sqlite db).
> > >
> > > Best, Maarten
> >
> >
> > Why don't you check for the existence of the db file? If it exists, your
> > app has been run, no? If it doesn't
> > exist, then you'll have to go through setup, even if it has run before
> but
> > the file has been deleted.
> >
> > Warren
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list