Seeking elegance-1

Frank D. Engel, Jr. fde101 at fjrhome.net
Fri Jan 14 14:30:12 CST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When the answers are changed, trigger a custom property of the stack 
being set to true (the needToFixSummary of this stack).  When you go to 
the summary card, check that value.  Set it back to false before 
exiting the handler that generates the summary.

On Jan 14, 2005, at 3:06 PM, SB wrote:

> Hi all,
>
> OK, I've got a stack working, now I want to make it less klunky.
>
> Right now, the user answers questions in a series of Question & Answer 
> cards, and when they go to the Summary card, all the questions and 
> responses are listed in one scrolling text field.
>
> It is automatic-- every time the Summary card is opened, there is a 
> new summary added on top of the old one, and all are saved.
>
> the script--
>
> on openCard
>   summarize
>   pass openCard
> end opencard
>
> on Summarize
>   repeat with i = 1 to the number of cds of bg "Q&A"
>     put (bg fld "Question" of cd i of bg "Q&A") & return after 
> theSummary
>         put (bg fld "Response" of cd i of bg "Q&A") & return & return 
> after theSummary
>   end repeat
>   put the long date & return & theSummary before cd fld "Destination" 
> of cd "List"
> end Summarize
>
>
> Of course, this means that EVERY time the summary page is opened, 
> there is a new set appended to the old-- this can add up if you thrash 
> around in the stack a while!
>
> One solution might be to only do the update if the answers on the Q&A 
> cards have changed.
>
> How would this be done?
>
> Thanks!
>
> Sandy
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB6CvU7aqtWrR9cZoRAkuZAJwPnL//y/wiWScxsZoyLDxMtMp8HwCfZyCF
8+HLJBPhE9r8IYXr3hrOUAs=
=Vda5
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list