>What would be a Code to search a table for a value and return the fieldname containing that value, (perhaps multiple fieldnames, perhaps multiple records)?
start with:
llFound = .f.
for i = 1tofcount()
iftype(field(i)) = "C"if somevalue $eval(field(i)) && might want to use upper() on both
llfound = .t.
exitendifendifnextif llFound
returnfield(i)
elsereturn .null.
endif