Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you create a cursor with an alias?
Message
De
30/10/1997 09:08:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00057358
Message ID:
00057366
Vues:
32
>can you create a cursor with an alias so that use can refer to itby an alias name like: "sele thisalias"

Hi Tim,

If you create using CREATE CURSOR, the name you give it is the alias, i.e. in

CREATE CURSOR MyCursor . . .

"MyCursor" is the alias

If you create it using a SELECT statement, you assign it the alias name in the statement, i.e. in

SELECT * FROM MyTable INTO CURSOR MyCursor NOFILTER

"MyCursor" is the alias
( NOFILTER forces creation of actual cursor, not a filter on original table )

If you want, you can use it again with another alias, i.e.

USE DBF( "MyCursor" ) IN 0 AGAIN ALIAS MySecondCursor

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform