Itemlist function
Posted: March 18th, 2024, 4:31 am
Dear Cspro Support team
How are you all? I need some assistance with itemlist function in cspro.Now Iam using latest version of cspro 8. itemlist function not supported in version 8, but in older version 7 it works well. Please I need help if any other supported function replaced with Itemlist
Here I have using on the older version
if locate(FORM_1_DICT,>=, itemlist(ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04,L_V05,A01)) and retrieve(FORM_1_DICT) then
/// Make sure this is a match since locate with >= can return something in another region
if ENUMERATOR_ID = F_ENUMERATOR_ID and L_V01 = V01 and L_V02 = V02 and L_V03 = V03 and L_V04 = V04 and L_V05 = V05 and A01 = f then
// Add entry to value set for this woreda
codes(nextEntry) = A01;
labels(nextEntry) = strip(A02);
inc(nextEntry);
endif;
endif
enddo;
Here below the error message when compiling
ERROR(FV06, 434): The itemlist function is no longer supported in CSPro
ERROR(FV06, 441): Expecting 'enddo'
ERROR(FV06, 442): PostProc clause expected
ERROR(FV08, 464): The itemlist function is no longer supported in CSPro
ERROR(FV08, 472): Expecting 'enddo'
ERROR(FV08, 473): PostProc clause expected
How are you all? I need some assistance with itemlist function in cspro.Now Iam using latest version of cspro 8. itemlist function not supported in version 8, but in older version 7 it works well. Please I need help if any other supported function replaced with Itemlist
Here I have using on the older version
if locate(FORM_1_DICT,>=, itemlist(ENUMERATOR_ID, L_V01, L_V02, L_V03, L_V04,L_V05,A01)) and retrieve(FORM_1_DICT) then
/// Make sure this is a match since locate with >= can return something in another region
if ENUMERATOR_ID = F_ENUMERATOR_ID and L_V01 = V01 and L_V02 = V02 and L_V03 = V03 and L_V04 = V04 and L_V05 = V05 and A01 = f then
// Add entry to value set for this woreda
codes(nextEntry) = A01;
labels(nextEntry) = strip(A02);
inc(nextEntry);
endif;
endif
enddo;
Here below the error message when compiling
ERROR(FV06, 434): The itemlist function is no longer supported in CSPro
ERROR(FV06, 441): Expecting 'enddo'
ERROR(FV06, 442): PostProc clause expected
ERROR(FV08, 464): The itemlist function is no longer supported in CSPro
ERROR(FV08, 472): Expecting 'enddo'
ERROR(FV08, 473): PostProc clause expected