Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexs on temporary cursors
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00324974
Message ID:
00325029
Views:
21
>Hi Ed,
>
>What "trickery" were you talking about?

I'm certain you're far too saavy to need such simple practices, but for the benefit of people who aren't, you can take a cursor from a SQL Select statement and make it writable by reopening the file in a different area. It requires that the cursor be an actual cursor and not a filtered view of the base table:
SELECT foo, bar, baz, bletch ;
  FROM widget;
 INNER JOIN doodad ;
    ON widget.key = doodad.key ;
 WHERE color = "Purple" ;
  INTO CURSOR TEMP
USE (DBF()) AGAIN IN 0 ALIAS PurpleWidgets
PurpleWidgets is writable.
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
Next
Reply
Map
View

Click here to load this message in the networking platform