Hilmar,
>>Can you tell me how to use the sys(2015) to name my index. I am haveing trouble with it.
>
>You have to store it to a variable. Something like this (not tested):
>
>
>local lcIndexName
>lcIndexName = sys(2015)
>use MyView
>index on MyField to (lcIndexName)
>...
>* Do something with the indexed view
>...
>use in MyView
>erase (lcIndexName + ".idx")
>
>
>But consider Sergey's note about using CDX - that should be simpler.
Careful here. ".CDX" files can exist separately from Structural (Compound)Indexes and are called just Compound Indexes then.
INDEX ON cMyField TAG cTagName OF (lcIndexName) would do that.
I think you knew it, but it looked some confusing ...
PMFJI, Peter
>
>You may still require the above technique for some other temporary files.
>
>Hilmar.