MTarkington
Programmer
Good afternoon,
I currently have a formula with the following code:
stringvar code1 := {history.code_authorized_1};
numbervar counter;
numbervar subscript;
stringvar array cpt_code := [filled with 70 data elements];
stringvar array code_value := [filled with 70 data elements];
for counter := 1 to 70 do
(
if code1 = cpt_code[counter] then
(
subscript := counter;
)
);
code_value[subscript];
END OF CODE
Now, I have 2 arrays that have corresponding data (cpt_code[1] directly corresponds to code_value[1] and so on). I want to be able to compare the variable code1 to the cpt_code array and display the code_value data that corresponds.
The above code only works for certain records. I have over 100 pages on this report, each DL is 1 record, and it only seems to be pulling the 10th item in the array, which is correct for the ones that it is displaying, however, it is not displaying any corresponding fields for the other records.
Any ideas or suggestions will be appreciated.
Thanks,
Mark
I currently have a formula with the following code:
stringvar code1 := {history.code_authorized_1};
numbervar counter;
numbervar subscript;
stringvar array cpt_code := [filled with 70 data elements];
stringvar array code_value := [filled with 70 data elements];
for counter := 1 to 70 do
(
if code1 = cpt_code[counter] then
(
subscript := counter;
)
);
code_value[subscript];
END OF CODE
Now, I have 2 arrays that have corresponding data (cpt_code[1] directly corresponds to code_value[1] and so on). I want to be able to compare the variable code1 to the cpt_code array and display the code_value data that corresponds.
The above code only works for certain records. I have over 100 pages on this report, each DL is 1 record, and it only seems to be pulling the 10th item in the array, which is correct for the ones that it is displaying, however, it is not displaying any corresponding fields for the other records.
Any ideas or suggestions will be appreciated.
Thanks,
Mark