Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Cursor Read-only
Message
 
To
13/03/2000 04:31:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00344890
Message ID:
00344944
Views:
21
>I've got a cursor, created by a SELECT - SQL statement. By default, it's read-only and I could make it to be rewriteable by
>"USE DBF() AGAIN..." statment. How could I know if the cursor is read-only or not, because I have to to make some independent program, which deletes and rewrites records in cursor and I'm not sure that this cursors was opened in rewrite-able mode?

One easy way is to use a cursor naming convention to indicate it. For example:

1) RO cursor: c_mycursor

2) Writeable cursor: w_mycursor

Then just check the first char.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform