The easy way to reference fields if you don't know their names or
just have too many is to do it by the ordinal # of the field:
tc.(xx) ....
Where XX is some integer value the represents the field you want to address
in the TC.
So if you knew there were 5 fields in the table:
var
siloop smallint
endvar
for siloop from 1 to 5
if tc1.(siloop)<>tc2.(siloop) then
msgstop("Hey!","Got a mismatch here "+tc1.(siloop)+"\n"+tc2.(siloop))
endif
endfor
---
sorry, meant to put that inside of a scan loop.
Now in your situation, if the field you didn't care about was #4, then
inside the for loop do:
if siloop=4 then loop endif
to have it skip that #.
To make it easy on yourself, you could write a query that returned all of the
fields except the ones you wanted, then go into the scan loop and IF
comparisons.
If you didn't want to rely on your knowledge of the table's # of fields,
then you could use ENUMFIELDxxxx xxx=names of structure, etc.
That'll get you partway there I think.
--
Beavis kicks ASS! He KICKS 'em! Kicks, KICKS! He rules, he RULES, RULES!!