Page 1 of 1

Issue with loadcase function for user authentication in CSPro 8.0

Posted: February 19th, 2025, 3:59 am
by Rolyno
Hello everyone,

I am facing an issue with CSPro version 8.0. I want each enumerator to enter an ID and password before proceeding with the rest of the questionnaire.

To achieve this, I created an external dictionary using the Excel to CSPro option, which contains two variables: ID and Pass_word. Then, in the main dictionary (where I created the ID and password variables), I used the loadcase function as follows:

PROC MOT_DE_PASSE

if
loadcase(MOT_DICT, IDENTIFIANT, MOT_DE_PASSE) = 0 then
errmsg("The code is not valid for user %l", IDENTIFIANT);
reenter;
else
move to NUM_MENAGE;
endif;

However, this gives me the following error:


ERROR(5): 'MOT_DICT' is not a declared variable or is a misspelled dictionary entry
ERROR(8): PostProc clause expected

How can I fix this issue? Any help would be greatly appreciated.

Re: Issue with loadcase function for user authentication in CSPro 8.0

Posted: February 19th, 2025, 5:40 pm
by Gregory Martin
Did you add your dictionary, MOT_DICT, to your application as an external dictionary?

https://www.csprousers.org/help/CSPro/a ... ation.html

CSPro does not recognize the symbol MOT_DICT, so it likely has not been added to your application.

Re: Issue with loadcase function for user authentication in CSPro 8.0

Posted: February 20th, 2025, 4:31 am
by Rolyno
Thank you Grégory Martin for your helpful responses! Your support really helped me solve my issue.