Christian,
As Bill said, you can't use parentheses () in an index name. You also need to be careful not to use reserved words like "deleted" or "Desc" in your field and index names. You can get some weird results when VFP is confused about whether you mean a field named "DESC" or want to order a cursor "Descending". The same is true with "DELETE" and "DELETED". Bill uses "Deletes" and I use "DELTED", both different from any reserved word.
HTH
Barbara
>Hello,
>
>I want to set indexes programmatically.
>How do I set an index on DELETED()?
>
>I try INDEX ON Deleted() TAG Deleted().
>
>It won't accept this tagname, but in Modify Structure I can use the tag name Deleted(). Should I leave the () away or is there another way?
>
>Thanks for your help.