FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper save active work areas/indexes/filters/relations and restore
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
save active work areas/indexes/filters/relations and restore
Posted: Tue Mar 13, 2007 03:33 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
save active work areas/indexes/filters/relations and restore
Posted: Wed Mar 14, 2007 08:00 AM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
save active work areas/indexes/filters/relations and restore
Posted: Wed Mar 14, 2007 12:33 PM

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

Continue the discussion