Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening table with macro substitution for alias
Message
De
24/01/2006 08:31:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01089665
Message ID:
01089694
Vues:
8
Similar to the other responses, I you can still use a meaningful name, and just add your number to the end of it. Useful for debugging purposes:
lncount = 1
DO WHILE vwmactionnot.actionno = 1
        cNewAliasName = "membership" + alltrim(str(lncount)) 

&& And below, I usually like to specify SHARED or 
&& EXCLUSIVE and not count on the EXCLUSIVE setting 
&& that you desire to be already set in the environment
 	USE vwmmembership IN 0 ALIAS &cNewAliasName again
	SELECT &cNewAliasName
	SET ORDER TO username
	BROWSE NOINIT nowait
	lncount = lncount + 1
	SKIP
ENDDO
Paul A. Busbey
Victoria Insurance
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform