ERROR:You must assign the result of the function to an alpha

Discussions about CSEntry
mahendra
Posts: 7
Joined: June 26th, 2017, 7:17 am

Re: ERROR:You must assign the result of the function to an alpha

Post by mahendra »

I entered this logic even though there is error
ERROR: You must assign the result of the function to an alpha near line 1 in NUMBER_OF_MEMBERS_IN_THE_HOUSEHP procedure

PROC NUMBER_OF_MEMBERS_IN_THE_HOUSEHP
if ("NUMBER_OF_MEMBERS_IN_THE_HOUSEHP") = ("Count") then
skip to PERSON_RECORD = ("Count NUMBER_OF MEMBERS_IN_THE_HOUSEHP") ;

endif ;
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: ERROR:You must assign the result of the function to an alpha

Post by Gregory Martin »

You may want to review the CSPro documentation concerning logic. Your syntax is not valid CSPro syntax. You do not need to put quotation marks around variable names. "Count" also does not mean anything, and the skip statement works to move to a field, it cannot be used to make an assignment as you have.

If you want, you can describe in words what you are trying to do and we can try to translate it into valid CSPro logic.
mahendra
Posts: 7
Joined: June 26th, 2017, 7:17 am

Re: ERROR:You must assign the result of the function to an alpha

Post by mahendra »

Dear Gregory,
i want to use "Repeat group"
If i enter number of members in the household in 1st question, then in next question name, sex, age, relationship, education, occupation should be repeat as per entered number of members in the household.
Post Reply