Page 1 of 1

Standalone application has test data

Posted: Mon Mar 14, 2016 7:32 pm
by kirbyglad
When I'm testing my program in Run mode, I enter stuff in fields, push buttons, and so on.

But then when I create a standalone application, all of that crap is included in my build to the default to the end user is whatever state of disarray I created during testing.

It is ridiculous to go through and manually remove all my testing entries, so how can I create a stand alone app that is "clean" - like a compiled app would be???

I looked a "profiles" but I'm it seems like there should be a simple check box for this.

Thanks in advance

Re: Standalone application has test data

Posted: Mon Mar 14, 2016 8:48 pm
by SparkOut
This has come up a number of times in the past. This thread has some info, and a link to another thread with some more "industrial" techniques.
http://forums.livecode.com/viewtopic.php?p=93312#p93312

Re: Standalone application has test data

Posted: Mon Mar 14, 2016 11:14 pm
by kirbyglad
Thanks for providing a useful link to this past discussion.

I suppose a mass initialize may cost less development time than setting up a profile for each entry field, so long as I have a naming convention that identifies all the fields.

Re: Standalone application has test data

Posted: Mon Mar 14, 2016 11:33 pm
by SparkOut
That link in the other thread to the "industrial" approach should be http://forums.livecode.com/phpBB2/viewt ... 204#p34204 by the way

Re: Standalone application has test data

Posted: Mon Mar 14, 2016 11:57 pm
by FourthWorld
Many years ago a few of us got into the habit of adding a handler named StripAndShip to our mainstacks, which as the name implied handles cleanup before shipping. In LC we have a SavingStandalone message sent by the Standalone Builder just before an app is built, so trapping that to call StripAndShip makes cleanup automatic.