Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create and Updatable Cursor
Message
De
03/03/1998 09:02:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00082148
Message ID:
00082263
Vues:
35
>How would you create an Updatable Cursor.
>
>My application need to create this temporary cursor, then change some data.
>
>Thank you,
>Marco


Select * from someTable;
Where .t.;
into cursor tmp

Noter: Use the .t. to assure you have a true cursor, and
not a pointer back to your master table.

In the debug window:
dbf(alias()) or dbf('tmp') - Will show where the cursor is comming from.

select 0
use dbf('tmp') again alias updCursor

Now you can perform any calculations on any field
in the 'updCursor'

I.E.
Replace all pcnt with (accepted/totsubmit)

Russ
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform