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 19:11:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00057358
Message ID:
00057508
Vues:
35
>>can you create a cursor with an alias so that use can refer to itby an alias name like: "sele thisalias"
>Timothy,
>
>The name you give a cursor is its alias;
>
> CREATE CURSOR MyCursor ...
>
>will create a temporary table on disk named something like C:\temp\1283456.dbf and open it with the alias MyCursor.
>
> SELECT Blah FROM Blah, BlahA WHERE whatever INTO CURSOR MyResult
>
>will create a temporary table on disk named something like C:\temp\1283456.dbf and open it with the alias MyResult.

In none of these cases you can be sure that a temp file is created. VFP decides internally if the cursor is written in a file on disk or if it's kept in the memory.

In both of these cases, if the cursor is written to disk, the file extension is .tmp and not .dbf.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform