Problem coding a selcase
Posted: March 5th, 2013, 11:34 am
I am having some problems coding a selcase. A users ID code is generated when they are added to my system and I want to check for duplicates. The code I have been trying is
operf_cd is the operator code in the external dictionary - 3 alpha char
opr_code is the field that I use to capture the operator code in this application. 3 alpha char
I have tested using codes that are in the external file but ok is always 0. Am I coding this correctly. I would like to use this one external dictionary to check several things.
Neville
Code: Select all
ok = selcase(oper_folder_dict,"") where operf_cd = opr_code;
if ok = 1 then
errmsg("This code %s has already been used. !!PLEASE REENTER AND CHANGE !!",$);
REENTER;
endif;opr_code is the field that I use to capture the operator code in this application. 3 alpha char
I have tested using codes that are in the external file but ok is always 0. Am I coding this correctly. I would like to use this one external dictionary to check several things.
Neville