He's back! Test Review Software still ongoing project! lol

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

He's back! Test Review Software still ongoing project! lol

Post by stuartls » Fri Apr 13, 2007 6:21 pm

Hey Mark and Marielle and the rest of the gang!

Still putting together my test review software! Been alot of research into the answers, questions and everything to make it meaningful for my students so haven't been programming alot. I think I need a staff of 20 just to do half of what I need! Anywayyyyy. This is part of the setup. A student runs through 200 cards with the questions and of course possible answers to each question, meaning A,B,C, or D. No problems there and no problems checking if there answer is right. So all that is fine. I have 200 other cards that are "answer" cards. If a student gets a question wrong I want them at the end of the exam to be able to review the appropriate "answer" card to the question they got wrong. They of course may get lets say 20 questions wrong and then at the end of the exam they will have the option of reviewing the separate 20 answer cards for the wrong questions. I don't want them to have to go through all 200 answer cards to find the questions they got wrong. So I need some direction here. Got alot of thoughts roaming around in my head. Is it possible to move cards to separate stack? Thinking of something like if they got say questions #5 wrong then move the answer card for question #5 into stack "wrong-answer-review". But then it would have to reset for the next time the student took the test. What path do you guys think you would take? Oh Marielle, going rafting tomorrow! The season starts here!

Stu

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Apr 13, 2007 11:50 pm

Hi Stu,

You can copy a card to a stack using the syntax

copy this cd to stack "My Stack"
copy cd 25 of this stack to stack "My Stack"

or variations on this. However, I don't think this is a good approach. It would be much better if you had one card for each question and kept a list of questions that have been answered incorrectly in a variable or custom property. Just remember the card id's for these questions and visit these cards when the user tries to answer the questions again. This is much simpler than keeping copies of cards in different stacks.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

Post by stuartls » Sat Apr 14, 2007 1:11 am

Can I copy or refer to card by it's card number in the stack in not it's name?

Stu

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Apr 14, 2007 1:31 am

Hi Stu,

You can refer to a card by number, ID, altID or name.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

Further explaination, and radio button help.

Post by stuartls » Tue Apr 17, 2007 7:22 pm

Mark,

To further clarify this. My test only has 200 questions and I am not copying any cards. There is actually 400 cards. The last 200, cards 201 thru 400 are explainations to the answers for the first 200 cards, meaning cards 1-200. A student goes thru and answers all the questions (which are questions 1-200) and then ends up on what I call a grading page. On this grading page is a button to grade the exam. The number of wrong and right questions are displayed on this card. The script to the grading button checks all the answers to the questions and grades them AND marks the corresponding "answer" card (cards 201-400) for each question the student got wrong or didn't answer. The student then has the option of pressing another button to review the "wrong" answered questions, meaning the cards that are marked. Each one of these cards restates the question and gives the reason behind the correct answer to the question. The student thus can review each question that he or she got wrong with an explaination as to why they maybe got it wrong. Now I can reset all the marked cards. No problem there. But how do I reset the radio buttons so he or she can take the exam again without any evidence of past answers? I can't seem to find that command anywhere! lol Also my radio buttons on each card are of course grouped and each card has the same group name for the radio buttons. They are all named groupRB. Do you also think I should go back and lock each radio groups possition on each card? I hope not because that would mean going back thru quite a few cards!

Thanks!
Stu

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

Post by stuartls » Tue Apr 17, 2007 9:50 pm

I found part of my answer. I am using "hilitedbutton" to find the number of the button that is hilited. If I go with

set the hilitedbutton of group "slideRB" of card tIncreaseNumber to "none"

At the end of the exam "tIncreaseNumber" will contain the number of quesitons the student has answered. I just need to write a loop for it which i can do. So in theory it will loop back though each card the student has answered and change the hilitedbutton to blank! wooo hoooo. See Mark, came along a bit since the beginning! lmao.....

Stu

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

oopppppppppppppsssssss!

Post by stuartls » Wed Apr 18, 2007 12:03 am

I can't get this to work? And what do I do if a student had not even answered a question, meaning no hilited button?

on mouseUp
put 200 into tTotalCardNumbers
repeat for 200 times
put the hilitedbuttonname of group "slideRB" of card tTotalCardNumbers into tClearThisButton
unhilite button tClearThisButton
subtract 1 from tTotalCardNumbers
end repeat
go to card 1
end mouseUp

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

Got it!

Post by stuartls » Wed Apr 18, 2007 4:24 am

This works! lol

on mouseUp
put 200 into tTryThis
repeat 200 times
set the hilitedbutton of group "slideRB" of card tTryThis to 0
subtract 1 from tTryThis
end repeat
go to card 1
end mouseUP

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Apr 18, 2007 8:37 am

Hi Stu,

You said you are copying cards, so now it is not exactly clear what you want to do.
on mouseUp
put 200 into tTryThis
repeat 200 times
set the hilitedbutton of group "slideRB" of card tTryThis to 0
subtract 1 from tTryThis
end repeat
go to card 1
end mouseUP
I'd do this on closeCard. Your script would become similar but not exactly equal to:

Code: Select all

on closeCard
  if the hilitedButton of grp "slideRB" is not 3 then
    mark cd 203 -- the cd with the answers
  end if
  set the hilitedButton of grp "slideRB" of me to 0
end closeCard
By dealing with one card at a time only, the user doesn't have to wait while the cards are reset.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

stuartls
Posts: 49
Joined: Mon Jan 22, 2007 10:59 pm
Contact:

Post by stuartls » Wed Apr 18, 2007 4:23 pm

Mark,

Any way I can send you my stack to explain what I am doing? I think it would clarify alot of questions and explainations. My personal email is raft_guide@hotmail.com if you would like to send me contact info off-forum.

Stu

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Apr 18, 2007 4:34 pm

Sure, Stu, I'll send you an e-mail. -Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

marielle
Livecode Opensource Backer
Livecode Opensource Backer

Post by marielle » Wed Apr 18, 2007 5:46 pm

Hi Stu,

You may want to re-edit your post and remove your email. Best is to contact persons via private messaging. For this, click on the "pm" button at the bottom of a post.

Marielle

Post Reply