>thx
>i hv try to use "shared" , but the error still come out, is that the problem that i add cursor into the DE ?
If you have EXCLUSIVE set at its default ON, and the table is part of a database (i.e. in a .DBC), then when you issue
USE MyTable IN 0 SHARED
the Database file (.DBC) will still be opened exclusively, so the second attempt to open the table will fail.
You have two options:
1. SET EXCLUSIVE OFF. Note that this is scoped to the current Datasession.
2. Open BOTH the Database and the Table shared:
OPEN DATABASE MyDBC SHARED
USE MyTable IN 0 SHARED
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up