Standalone application has test data

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
kirbyglad
Posts: 6
Joined: Wed Feb 15, 2012 6:34 am

Standalone application has test data

Post by kirbyglad » Mon Mar 14, 2016 7:32 pm

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Standalone application has test data

Post by SparkOut » Mon Mar 14, 2016 8:48 pm

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

kirbyglad
Posts: 6
Joined: Wed Feb 15, 2012 6:34 am

Re: Standalone application has test data

Post by kirbyglad » Mon Mar 14, 2016 11:14 pm

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.

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Standalone application has test data

Post by SparkOut » Mon Mar 14, 2016 11:33 pm

That link in the other thread to the "industrial" approach should be http://forums.livecode.com/phpBB2/viewt ... 204#p34204 by the way

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Standalone application has test data

Post by FourthWorld » Mon Mar 14, 2016 11:57 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply