Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek in a View
Message
De
04/09/2002 07:43:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/09/2002 17:42:28
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00695819
Message ID:
00696535
Vues:
16
>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.

You may still require the above technique for some other temporary files.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform