Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: jpstoryHi
I have a field contains any possible combinations of 4 values ("A","B","C","D")
What I need to do is make sure the popualted value is one / a combination of the four values above.
I can do a member test if it's just one value with list.find() but I got stuck when I need to check each one of values populated in this field.
is there a way to do something like this:
MyList = list("A","B","C","D")
i = 0
while i <=TestField.len()
Txt = TestField.getItem(i).Str()
if MyList.find('Txt') == -1 then
Result = "Fail"
else
i = i + 1
emit TestField, Result