Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving cursors
Message
From
14/11/2000 17:18:24
 
 
To
14/11/2000 17:08:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00441240
Message ID:
00441880
Views:
11
>>MC>I'll probably need to save views, too, so that's not a problem. In my testing, even filtered cursors had a .tmp extension. How would I create one with a .dbf extension?
>
>select * from yourtable where [a very simple condition here] into cursor blabla
>
>That should give you a filtered cursor, but I'm not sure if/when would you get the dbf('blabla') equal to dbf('yourtable'). I just know I saw it a few times in VFP5 (or was it 2.6?) and I'm usually creating cursors with Nofilter whenever I need the file.
>

The exact condition that generates a filtered view rather than a cursor is a query against a single table, with no computed or added fields, that is fully Rushmore optimizable. Adding "NOFILTER" to the query, or adding an argument to the WHERE that is not Rushmore optimizable (eg add "AND .T." to the WHERE clause) to force the creation of a 'real' temporary file for the cursor.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform