Can someone advice me for below formula in crystal.
trying to match values of string values from one field 1 in other field 2 and flag as match if any string matches.
for example :
[field 1 --------- field 2 ----------- flag
abc, a, b -------- abc, bcd --------Match
k, s ------------- n ----------- no match
p, n, a ---------- a, n -----------Match
For i := 1 to ubound(field1) Do
(
if field1[i] in field2 then (
result := ‘Match’;
Exit For;
)
)
result;
This will turn fields 1 and 2 into arrays based on where the commas are. It will then walk through each of the items in the array from field 1 to see if they’re in the field 2 array.