If this is indexing a view, this is not necessary. Open a view, and type ?DBF() in the command window. VFP assigns a unique filename for the DBF and opens it in your "TEMP" folder. So all you really need to do is:
INDEX ON CUSTNO TAG CUSTNO
When you close the view, that temp DBF filename and associated CDX file of the SAME name will be automagically erased for you.
>It was suggested that I use sys(2015) to name my index files so they would be unique for multi user.
>
>Index On custno To uidfthis
>
>Seek(AllT(This.DisplayValue)) Order uidfthis
>ThisForm.Refresh
>
>This will not give me the sys(2015) generated variable.
Mark McCasland
Midlothian, TX USA