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
Standalone application has test data
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Standalone application has test data
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
http://forums.livecode.com/viewtopic.php?p=93312#p93312
Re: Standalone application has test data
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.
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
That link in the other thread to the "industrial" approach should be http://forums.livecode.com/phpBB2/viewt ... 204#p34204 by the way
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Standalone application has test data
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn