Search found 14 matches

by mashour
August 26th, 2016, 12:32 pm
Forum: Entry
Topic: multiple select checkbox
Replies: 6
Views: 8637

Re: multiple select checkbox

Hi, If you browse several old posts you will see that it's really not recommended to use numbers as response choices for multiple select questions (especially if you have more than 9 choices). Right now 1 and 10 are being read as 0 selected once and 1 selected twice, hence the error. You can use let...
by mashour
August 8th, 2016, 11:37 am
Forum: Entry
Topic: using getocclabel() in a roster
Replies: 3
Views: 4176

Re: using getocclabel() in a roster

Hi Josh, Thanks for the suggestion. I didn't know you could do that. However I'm now coming up against a different problem. Suppose my occurrence labels were 1=chairs, 2=tables, 3=lamps, 4=other, and I allowed the user to specify what 'other' is, for example, desks. Then by using %getocclabel%, the ...
by mashour
August 3rd, 2016, 3:54 pm
Forum: Entry
Topic: using getocclabel() in a roster
Replies: 3
Views: 4176

using getocclabel() in a roster

Hi, I have used getocclabel() in a roster to capture the occurrence label and display it the CAPI text box, but sometimes it displays values for the previous occurrence if I decide to move back through the roster. So if my roster "SECTION_A" had a list of household items such as 1=chairs, ...
by mashour
August 3rd, 2016, 3:36 pm
Forum: Entry
Topic: multiple select checkbox
Replies: 6
Views: 8637

Re: multiple select checkbox

Hi,

Thanks for these really good suggestions! :D

M
by mashour
July 29th, 2016, 6:39 pm
Forum: Entry
Topic: multiple select checkbox
Replies: 6
Views: 8637

Re: multiple select checkbox

Thanks for the suggestion! I think you meant length(strip(CHECKBOX)) instead of strip(length(CHECKBOX)) below. Your solution works well if the repeated selections are back to back such as AAB or CAA, but not if you enter ABA. I ended up resorting to the ridiculously long solution below to guarantee ...
by mashour
July 28th, 2016, 11:21 am
Forum: Entry
Topic: multiple select checkbox
Replies: 6
Views: 8637

multiple select checkbox

Hi, Supposed I have question with three options and I want the user to be able to select as many as applicable, how do I prevent them from entering invalid response values? So for instance in the example below, how do I prevent the user from entering "D" which is not one of the three optio...
by mashour
April 11th, 2016, 11:59 am
Forum: Tabulation
Topic: automatically concatenating and exporting data!
Replies: 1
Views: 6177

automatically concatenating and exporting data!

Hi, I've been using CSPro for a couple of years to design data entry applications but I am only now realizing that I don't know how to automatically concatenate and export data. By automatically I mean not manually clicking on concatenate, selecting files, etc. Is it possible to write some code so t...
by mashour
April 11th, 2016, 11:48 am
Forum: Entry
Topic: using the sysparm() function
Replies: 4
Views: 20073

Re: using the sysparm() function

thanks! that is really helpful, because I've faced this problem (of being in the preproc) and i didn't know about visualvalue()!
by mashour
March 29th, 2016, 1:42 pm
Forum: Entry
Topic: using the sysparm() function
Replies: 4
Views: 20073

Re: using the sysparm() function

Thanks Josh!! I had actually tried a variation of what you suggested and it didn't work, which is why I was looking for the demode() function. I tried using if statements and the universe function but neither seemed to work... PROC IDVAR preproc universe special(IDVAR); $ = tonumber(sysparm("ID...
by mashour
March 29th, 2016, 12:23 pm
Forum: Entry
Topic: using the sysparm() function
Replies: 4
Views: 20073

using the sysparm() function

Hi, I am using a menu/launcher to direct my enumerator to one of 8 questionnaires. In most of the 8 questionnaires, the case id will be a 5 digit ID which I have them enter in the launcher. I used the sysparm() function to pass this 5 digit ID onto the other questionnaires when the pff launches. I e...