learning program help

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
Gustavo Woltmann
Posts: 1
Joined: Wed Feb 10, 2016 5:52 pm

learning program help

Post by Gustavo Woltmann » Wed Feb 10, 2016 8:06 pm

Im creating a learning program where the user studies some key terms and their definitions and then is tested on their memory for that question. On the study card, they are simply presented the materials. on the test card they are presented they key term and a response field. My problem is that, any accidental key presses that occur on the study card show up in the response field of the next card.

I have tried several measures to prevent this from happening, including setting the locktext to true,selecting empty, trapping keypresses in the response field, but these key presses from the previous card keep showing up.

When the test card is opened, I do the typical
CODE: SELECT ALL
select text of fld response
put empty into fld response
but those bastards keep getting put into the field.
Any ideas? I'm out.
Thanks a bunch,
Phil

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: learning program help

Post by Klaus » Wed Feb 10, 2016 9:35 pm

Hi Phil (Gustavo?),

1. welcome to the forum! :D

2. Sounds like that field is part of a grpup that is placed on both cards, right?
If yes, then UNcheck the "sharedtext" property of that field in the inspector!


Best

Klaus

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

Re: learning program help

Post by dunbarx » Wed Feb 10, 2016 11:14 pm

Klaus makes a great suggestion, and it is worth exploring the "sharedText" property in detail.

But if he is right, then the text in the study card would be mirrored in the test card. Keypresses, except for those that actually change the text, would not affect anything at all, and the situation would also work in reverse, that changes in the test card would mirror in the study card. It sounds to me like these are separate fields.

Ah. But they couldn't be, because then actions in one card would not affect the other.

What I mean is that I am confused. And I also do not know how your stack is laid out.

In any event, I would not group anything; that powerful feature should only be used when called for, and from what you describe, that is not the case here. So please write back with what you find if indeed unchecking the "sharedText" property fixes the problem. I would like to know how that could possibly matter.

Craig Newman

Post Reply