How to save a score for a final score

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
Peacfulrvr
Posts: 34
Joined: Mon Nov 03, 2014 7:11 pm

How to save a score for a final score

Post by Peacfulrvr » Mon Nov 24, 2014 7:28 pm

I have searched and can't find a simple way to save the score from one card and put it into a final score on the last card. It must be something simple but I can't figure it out.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10332
Joined: Wed May 06, 2009 2:28 pm

Re: How to save a score for a final score

Post by dunbarx » Mon Nov 24, 2014 8:14 pm

Hi.

So many ways to do this. Can you write a handler that saves to a particular field on that last card, summing values as you go? Or perhaps in a custom property, same methodology? Both survive sessions.

But is your question how to write such a handler? Some questions to consider:

-- When are the intermediate values terminated? When the user leaves the field? Leaves the card?
-- When is the user actually completely finished, and needs to see the results? After the last intermediate card?

Does this,in general, help?

Code: Select all

add field "currentField" to field "totalField" of last card
Craig Newman

Peacfulrvr
Posts: 34
Joined: Mon Nov 03, 2014 7:11 pm

Re: How to save a score for a final score (solved)

Post by Peacfulrvr » Mon Nov 24, 2014 10:27 pm

Thank you for the help... that worked

Post Reply