Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursors!!
Message
From
20/07/2001 08:44:47
 
 
To
20/07/2001 08:31:55
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00533036
Message ID:
00533076
Views:
12
>Now that I know what a cursor is ..... what are the tricks you were talking about? :) I would really love to know about them.
>
>Richard.

Ok.. Cursor Tricks...

If you do a simple select statement

Select * from table into cursor fred

The created cursor may not really exist, VFP will just give you the same table again (filtered if you use a where clause) in a different work area.
You can use the NoFilter clause of the select statement to stop this.
But even after a Nofilter, the cursor might not exist on disk

You can check for this by looking at DBF() if there is a '.DBF' in the filename returned then the cursor has a presence on disk, it it's '.TMP' then it's in memory.

You can also Use DBF() again in 0 Alias NewCursorName
to re-open the cursor in read-write mode (But I think you need to to the
above check first)

VFP7 apparently has a clause added to SQL Select where you can create a writable cursor automatically (I Forget the name).

HTH

Will
Will Jones
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform