Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors
Message
From
22/07/2010 10:42:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/07/2010 09:37:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01473462
Message ID:
01473484
Views:
39
>Hi All,
>
>I need to allow a user to read data into a table for processing in my app. I dont know how much data he may read in from a 3rd party source but when the application is done it can discard the data, I dont need it once the app is exited. My question is should I use a disk file table or a memory cursor? Is there any concerns about resources if the user reads in a lot of data?

Cursor, definitely. Resoruce usage should be the same, but Visual FoxPro takes care of some details which you would otherwise have to manage yourself - mainly, assigning a temporary name, and deleting the file automatically when you close the cursor.

Both with temporary tables which you yourself control, and with cursors (which also use temporary files), it is possible that temporary files remain on disk when the program or the computer crashes. You should check, now and then, for those temporary files, and delete them.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform