-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBUSEAREA(0) LETO error = 21: EG_OPEN No 1000 // leto_ParseCommand() #39
Comments
Hi, Didn´t work for me too but I made some changes for you and this code below works:
Remember to close this ticket afterwards. |
Hi Numerabilis, dbSetfilter() works without the 2nd parameter and the exe does not bug when opening the file again. Best regards |
Hi Doubledev, Did you run the example I give? I tested it and it worked. |
Actually, if want to run it twice you should rewrite last lines like below
This way I think it would work as desired. |
Hi,
using harbour lastest version and Letodbf lastest version, with the use of a filter, dbUsearea generates an error before opening the file again witout using dbclearfilter() before dbclosearea().
With previous versions there were no error.
Best regards,
Edmond
private Mydbf:="//127.0.0.1:2812/\Testdbf.dbf"
private cfilter:='FIELD1="ABC"'
dbCreate( Mydbf , { {"FIELD1","C",3,0} } , "LETO" )
dbUsearea( .F. , "LETO" , Mydbf , NIL , .T. , .F. )
dbSetfilter( {|| &cfilter } , cfilter ) // or dbSetfilter( &( "{|| "+cfilter+" }" ) , cfilter )
// bug without dbclearfilter()
dbclosearea()
The text was updated successfully, but these errors were encountered: