Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USE IN cursorName
Message
De
11/01/2007 14:09:14
 
 
À
11/01/2007 13:59:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01184698
Message ID:
01184718
Vues:
18
You may have a function that you may call every time you need in alias, e.g.:
Function gettempalias		&& return cursor alias
Local cTempalias
cTempalias='A'+Substr(Sys(2015),3,10)
If Used(cTempalias)
	Use In &cTempalias.
Endif
Return cTempalias
Endfunc
and in your program:
cAlias=gettempalias()
Select ... From ... Into Cursor &cAlias.
...
Select (cAlias)
...
Use In &cAlias.
>Hi Sir,
>
>How do I create a temporary aliases for my cursor?
>
>Normally, I just do this...
>
>
>SELECT * FROM poentry ;
>INTO CURSOR crsPoEntry
>
>
>> No problem. Btw, it is also a good practice to generate temporary aliases for cursors > every time when you use them.
>
>Please help.
>
>Thanks,
>Sam
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform