Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it good practice to create temporary dbfs then ....
Message
 
To
04/01/2006 13:50:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01082941
Message ID:
01084379
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform