Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it good practice to create temporary dbfs then ....
Message
 
À
04/01/2006 13:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01082941
Message ID:
01084379
Vues:
12
>Pretty much the only times I would use a table instead of a cursor is if:
>
>1) You need to keep the results of this query after the program closes (or datasession is closed)
>
>or
>
>2) Since "Select [fields] from [tables] into cursor [cursorName]" most often results in a read only set of records, I would use "into table [tableName]" instead if I intend to modify the data in any way post-select.
>

You just need to add at the end a READWRITE statement of your select and its already a writeable cursor..

sample: select [fields] from [tables] into cursor [cursorName] readwrite


Note: no readwrite support from VFP6 and earlier versions, not so sure with vfp6 with SP4...

>In my experience, I'm just using cursors a VERY high percentage of the time rather than temporary tables.
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform