Page 2 of 2
Re: "Workarea not in use" Error
Posted: Fri Mar 30, 2018 7:01 am
by serge_girard
Right and dbCreate doesn't complain!
Serge
Re: "Workarea not in use" Error
Posted: Fri Mar 30, 2018 1:51 pm
by asharpham
The idea of a corrupt DBF file is possible I think. Also I may have been trying to open it as NEW more than once. The LIBRARY database was created from another database file and then some fields removed as unnecessary for this new application. I'll try and create the LIBRARY.dbf file using a program instead of "hacking " into it manually. Then I'll run the REINDEX option to create the 5 Indexes that I need.
Back to the drawing board!
Thanks again guys.
Alan
Re: "Workarea not in use" Error
Posted: Fri Mar 30, 2018 3:24 pm
by serge_girard
Success !
Re: "Workarea not in use" Error
Posted: Sat Mar 31, 2018 6:32 am
by asharpham
Thanks for all your help on this one everyone. I recreated the database structure and copied the relevant tracks from another database into this one. I'm pleased with myself that it was successful! I am not receiving the workarea error any more.
Alan
Re: "Workarea not in use" Error
Posted: Sat Oct 20, 2018 4:38 pm
by ROBROS
Hi friends,
now I am retired.
My app is functionally working, and I am adding some "service-progs" like "change of year", "saving data", "deleting or adding records", "reports" and on and on.
Today I was faced with the runtime error "workarea not in use".
From the main menu I call a prg-file and my first command was "use" to close all open files, then "OpenDbs" because of the RTE, but to no avail.
So I changed the command "use" to "close databases" and everything was ok.
So there is a difference between "use" and "close databases"? I did not know that (took me about one hour to solve the problem
)
Maybe helpful for other newbies?
Robert
Re: "Workarea not in use" Error
Posted: Sat Oct 20, 2018 8:31 pm
by quartz565
Hi Robros,
I think "use" close only the last used dbf
Re: "Workarea not in use" Error
Posted: Sun Oct 21, 2018 7:58 am
by ROBROS
Hi Nikos,
That is what I found:
https://www.itlnet.net/programming/prog ... 41e96.html
So, you are right
Best Regards
Robert