Hi Nasrin,
After you mlade your index using
INDEX ON theField TO theField.idx
did you also run a
SET INDEX TO theField.idx
afterwards?
Otherwise, there is no 'live' link between the data and the index file.
If that doesn't help, it could be that the active index file is overridden by another.
Check if there is another SET INDEX TO later on, that is not ADDITIVE.
Also check for switches between indexes by
SET ORDER TO <expN>
Just a few thoughts,
Jan Schenkel.
" As we grow older, we grow both wiser and more foolish at the same time." (De Rochefoucald)