I can't seem to figure this one out.
I have a form with many alphanumeric fields displayed (all from one record). I have a button on the form that I want to check the displayed fields for others containing the same value and then change the color of these records. (Actually I want to color the larger box that contains the record, but I need to figure this out first)
My button currently sets up an array containing the fieldNames (arFieldNames)on the form and an array containing the values that are duplicated (arDupNames). Now I need to be able to scan the values of the fieldNames to find those contained in the array. However I can't figure out the right syntax (or datatypes or something) to make this work.
Here is what doesn't work. Can you tell me what does? I know that it is not properly connecting the connecting the names of the fields to the fields themselves. How do I do that?
For i from 1 to arSize
Name = arFieldNames(i).value
if arDupNames.contains(Name) then
arFieldNames(i).color = blue
endIf
endFor
Can anyone help? (I hope I explained this clearly.)
I have a form with many alphanumeric fields displayed (all from one record). I have a button on the form that I want to check the displayed fields for others containing the same value and then change the color of these records. (Actually I want to color the larger box that contains the record, but I need to figure this out first)
My button currently sets up an array containing the fieldNames (arFieldNames)on the form and an array containing the values that are duplicated (arDupNames). Now I need to be able to scan the values of the fieldNames to find those contained in the array. However I can't figure out the right syntax (or datatypes or something) to make this work.
Here is what doesn't work. Can you tell me what does? I know that it is not properly connecting the connecting the names of the fields to the fields themselves. How do I do that?
For i from 1 to arSize
Name = arFieldNames(i).value
if arDupNames.contains(Name) then
arFieldNames(i).color = blue
endIf
endFor
Can anyone help? (I hope I explained this clearly.)