Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursors!!
Message
De
20/07/2001 08:44:47
 
 
À
20/07/2001 08:31:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00533036
Message ID:
00533076
Vues:
11
>Now that I know what a cursor is ..... what are the tricks you were talking about? :) I would really love to know about them.
>
>Richard.

Ok.. Cursor Tricks...

If you do a simple select statement

Select * from table into cursor fred

The created cursor may not really exist, VFP will just give you the same table again (filtered if you use a where clause) in a different work area.
You can use the NoFilter clause of the select statement to stop this.
But even after a Nofilter, the cursor might not exist on disk

You can check for this by looking at DBF() if there is a '.DBF' in the filename returned then the cursor has a presence on disk, it it's '.TMP' then it's in memory.

You can also Use DBF() again in 0 Alias NewCursorName
to re-open the cursor in read-write mode (But I think you need to to the
above check first)

VFP7 apparently has a clause added to SQL Select where you can create a writable cursor automatically (I Forget the name).

HTH

Will
Will Jones
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform