Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tracking User respons

Status
Not open for further replies.

D2C

Programmer
Aug 27, 2001
86
0
0
BE
Hi,

I am trying to build an presentation in which the user can respond to several questions (kind of interview).
There are 10 questions in which the user can respond with a text entry and keypress interaction.
After the user has responded to the questions, I would like to show all his responds in a list that is displayed in my own presentation.

How can I do this?

Thanks for all your help.


Ddc001
 
Hi,

Sorry for the late response, I've only just got back into this forum.

To deal with this type of problem you need to use a list. At its simplest a list is a collection of variables, all with the same name but distinguished by a number.

You create the list at the top of the flow line by MyList:=array("",0) Which simply creates the variable and allocates space in memory for it. In this case the list is a list of string (text) values.

Then you need a counter of some sort (properly called an index). Lets say MyAns:=0.

Each time you want to record a response you can use some code like this:

MyAns:=MyAns+1
MyList[MyAns]:=EntryText -- Or some other variable

At the end of the quiz you will have a list of the responses and can retrieve each one individually or as a group, for either display or storing.


Regards,
Bernard Davis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top