NetTalk Central

Author Topic: Advice/suggestions on an Exam procedure  (Read 5059 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Advice/suggestions on an Exam procedure
« on: March 01, 2016, 02:24:23 AM »
UPDATE
I hadn't read the How to make a form popup thread before posting this message so some of my quesries mya be answered there
ENDUPDATE
Hi everyone
I'm looking for advice and suggestions
I have a question table
the fields are
QuestionID: kenrq2-65m50b9ttt
Question: What is my name
CorrectAnswerNo: 3
Answer1: John
Answer2: Brian
Answer3: Terry
Answer4: Oswald
Answer5:

I select a number of questions (say 10) randomly from the table
I now have a Memory table
SessionID: jdasd9rwrwrwrwr
UserID: 5353535fsff
QuestionSequence 1
QuestionID: kenrq2-65m50b9ttt

SessionID: jdasd9rwrwrwrwr
UserID: 5353535fsff
QuestionSequence 2
QuestionID: t665lm6-itetettte
 etc.

What I now want to do is to loop through the 10 questions, bring up a memory form showing the question with each of the answers and next to each answer a checkbox where the user can check against the answer he thinks is correct. I will have to check that only one answer is checked and if another is checked then the previous check is removed.
At the end of the question set I would bring up a browse displaying all the questions with next to them the selected answers wording
eg
What is my Name   Oswald
What is your name   John
with an inline change button allowing the user to change an answer if they are not happy.
Once they have completed the test (click the renamed close button) I would then calculate the success percentage and announce the result( via a alert popup) and write the result into a table

Is the above the best way to go about this?
Any suggestions for a better way?

« Last Edit: March 01, 2016, 02:28:19 AM by terryd »
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Advice/suggestions on an Exam procedure
« Reply #1 on: March 01, 2016, 09:08:19 AM »
Ok I've got all the above working. The questions have been selected and added to a TestTable. I have a browse listing the questions together with the answers that the user selected. I also have a form which is called in change mode by the browse and the user can change the button he has selected within the form which in turn changes the answer that he has selected.
Where I am stuck at the moment is how to present the form first looping though the Test file
I normally use a source procedure here but this can't be called from a menu choice so what is the best way to loop though the test memory table, call the form in change mode allow user to click a check box and then on save of the form return to the loop to get the next question?
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11297
    • View Profile
Re: Advice/suggestions on an Exam procedure
« Reply #2 on: March 01, 2016, 10:22:45 PM »
It's not a loop. That's the wrong way to think of it.

Rather think of it as "As each form is completed an action occurs."

Work on it from that direction and see what you get.

cheers
Bruce


terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Advice/suggestions on an Exam procedure
« Reply #3 on: March 02, 2016, 03:20:08 AM »
Righto. Thanks
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186