Page 1 of 1

save active work areas/indexes/filters/relations and restore

PostPosted: Tue Mar 13, 2007 3:33 pm
by RAMESHBABU
Hi friends

Can anybody guide me how to save the work areas in use alongwith their
indexes, filters and relations to restore them back later.

I am calling a function within main() which is using a different set of
databases, indexes with some filters and relations closing all the earlier
databses, indexes ... etc with CLOSE ALL. Once the called function has
performed its action, I want to restore the earlier databases, indexes,
filters and relations used in main function, automatically.

This functionality needs to work in Clipper 5.3b.

Thanks in advance



- Ramesh Babu P

PostPosted: Wed Mar 14, 2007 8:00 am
by Antonio Linares
Ramesh,

You may review the source code of FW function\errsysw.prg that checks all open DBFs, indexes and relations.

You could use that info to save it and later restore it.

PostPosted: Wed Mar 14, 2007 12:33 pm
by RAMESHBABU
Mr.Antonio

Thank you very much for your guidance.

I could do it exactly what I wanted by using
part of code from Errsysw.prg

Regards to you,

- Ramesh Babu P