Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find indexed fields on the table with code
Message
 
À
20/10/2003 10:57:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00840297
Message ID:
00840416
Vues:
18
Hi Trey,
i've do it with TAG() like below
Thanks...


lcpack=cdir + files.filename

Use &lcpack Exclusive
Pack
Messagebox(Allt("&lcpack")+" file PACKed",64,"Maintenance Report",1)

FOR nCount = 1 TO 254
IF !EMPTY(TAG(nCount)) && Checks for tags in the index
mytag=TAG(ncount) && Display tag name
mykey=KEY(ncount) && Display index expression
*? mytag,mykey
SET ORDER TO &mytag
* SET ORDER TO &mytag TAG &mytag

*WAIT WINDOW "&mytag"+" alaný indexleniyor..." TIMEOUT 0.5
MESSAGEBOX(allt("&lcpack")+" files "+ALLTRIM("&mytag")+" fields INDEX ed again",64,"Maintenance Report",1)
Reindex
ELSE
EXIT && Exit the loop when no more tags are found
ENDIF
ENDFOR


Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform