Tablogic error
Posted: January 31st, 2018, 2:12 am
Hi,
I'm using CSPro 7.0.2 to tabulate disabilities but I'm having a problem.
As recommended I created an alpha variable (for data entry) to allow multiple choice options. For the tabulation application I created a numeric variable with 12 occorrences and a valueset with 1 for yes and 2 for no. In the Tablogic I added the following code:
numeric i;
string alphabet = "ABCDEFGHIJKL";
do i = 1 while i <= 12
if pos(alphabet[i:1],DEFICIENCIA) > 0 then
DEFICIENTE(i) = 1;
else
DEFICIENTE(i) = 2;
endif;
enddo;
The error message I get is Tablogic - "Cannot create numeric variable - symbol name already exists". The same happens for the alpha variable.
Any clue about how to solve this?
Regards,
Tomás
I'm using CSPro 7.0.2 to tabulate disabilities but I'm having a problem.
As recommended I created an alpha variable (for data entry) to allow multiple choice options. For the tabulation application I created a numeric variable with 12 occorrences and a valueset with 1 for yes and 2 for no. In the Tablogic I added the following code:
numeric i;
string alphabet = "ABCDEFGHIJKL";
do i = 1 while i <= 12
if pos(alphabet[i:1],DEFICIENCIA) > 0 then
DEFICIENTE(i) = 1;
else
DEFICIENTE(i) = 2;
endif;
enddo;
The error message I get is Tablogic - "Cannot create numeric variable - symbol name already exists". The same happens for the alpha variable.
Any clue about how to solve this?
Regards,
Tomás