I have a situation where I need to have a macro check whether a file is in the proper format for a particular task. The way to test this is to see if it contains a series of text strings; if it has all of them, it is (almost certainly) right; if it doesn't, it's definitely wrong.
So what I need to do is perform a series of find commands, and know if they find something:
Code: Select all
For $Index = 1 to $NumberOfFields
# Check to see that all fields are found.
Find $FieldNames[$Index]
End # End For $Index = 1 to $NumberOfFields
There must be a way to do this, and once I see it, I'm sure I'll be very, very embarrassed, but I can't find it in the manual, and I'm not good enough at OOP to be able to guess.

Thanks in advance.