Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Views names
Message
De
17/02/2000 17:35:22
 
 
À
17/02/2000 16:41:20
Steve Buttress
Steve Buttress Software Consulting
Bloomington, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00333309
Message ID:
00333793
Vues:
25
>
>Here is my test code.
>
>USE cmi!lv_vendors
>INDEX ON cid TAG primary
>? DBF() && = F5PW000M.TMP
>? CDX(1) && = F5PW000M.CDX
>
>= REQUERY()
>
>? DBF() && = F5PW000Q.CDX
>? cdx(1) && = F5PW000M.CDX
>
>Note the last character of the temp name in the DBF() after the Requery().


There is a workaround which is acceptable.
EverY time you index on a view, do so with the following code:
IF EMPTY(CDX(1))
INDEX ON fexpr TAG tagname
ELSE
INDEX ON fexpr TAG tagname OF (CDX(1))
ENDIF

BUILD YOURSELF A LITTLE FUNCTION TO do this which takes the tagname and index expression as a parameter.


You will still have a non-structural index after the first requery -- but only one cdx file no matter how many times you requrey and build indexs. You won't have to reindex or use idx files...

You will have no signficant disadvantages from the fact that they are non-structural cdx's.

BTW -- the reason this has not been encountered more is that in most applications you can build all your view indexes when you first open the view, and do not need to build additional tags.
Thanks

Gar W. Lipow
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform