multpos
Posted: December 4th, 2012, 6:58 pm
The code below was in an example file (multpos) made by Gregory Martin. It convert alpha into numeric.
It seems that it works only if the alpha field is set to "Text" and doesn't if set to "Check box"
I would like to use this with an alpha field set to "Check box" and have ABC...Z converted into numeric 1 to 26. How can I do that?
Thank you
It seems that it works only if the alpha field is set to "Text" and doesn't if set to "Check box"
I would like to use this with an alpha field set to "Check box" and have ABC...Z converted into numeric 1 to 26. How can I do that?
Thank you
Code: Select all
PROC GLOBAL
alpha (26) alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
PROC MULTPOS_FF
preproc
set behavior() canenter(notappl) on(noconfirm);
PROC MULTALPH
PROC NUMBERS
preproc
if curocc() <= length(strip(MULTALPH)) then
NUMBERS = poschar(MULTALPH[curocc():1],alphabet);
else
NUMBERS = notappl;
endif;
noinput;