Question

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
CSProUser
Posts: 4
Joined: November 30th, 2016, 11:29 pm

Question

Post by CSProUser »

A quick question, how can I repeat a question until a specific answer "no more items" is entered?
Thank you.
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Question

Post by josh »

Create a repeating record with two variables - the question you wan't to repeat and the "no more items" question. Drag them onto the form to make a roster. In the postproc of the no "more items question" call endgroup if the answer is yes there are no more items. Here is an example of the postproc:
PROC MORE_PEOPLE
// Exit roster when no more people in household
if MORE_PEOPLE = 2  then
 
endgroup;
endif;
For the full application see http://teleyah.com/cspro/DCJune2015/02- ... urvey2.zip
CSProUser
Posts: 4
Joined: November 30th, 2016, 11:29 pm

Re: Question

Post by CSProUser »

Dear Josh, thank you for your answer. Just to confirm, there is no way to go over the 9,999 limit, correct?
https://www.census.gov/population/inter ... SPro50.pdf
(p.26.)
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Question

Post by josh »

You can't have more than 9,999 records in a single case. You can however have as many cases as you want. You probably want to use multiple cases here if you need that many occurrences.
Post Reply