Gaylen
If cFld_Name contains the field name you want to create an index on eg "Surname" then you can create an index on your table by using
INDEX ON (cFld_Name) TAG &cFld_Name
The first expression in () is evaluated to field "Surname" and the TAG expression is evaluated to Surname.
Jos
>(VFP 7.0 SP1)
>
>Hi,
>
>I would like to create new index tags for tables using tag names and index expressions contained in a table.
>
>The INDEX command will not allow me to use a variable or field reference for the tag name or expression.
>
>Is there a way I can accomplish this?
>
>Thanks
>Gaylen Miller
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.