Issue with loadcase function for user authentication in CSPro 8.0
Posted: February 19th, 2025, 3:59 am
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.
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.