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

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

Postby RAMESHBABU » Tue Mar 13, 2007 3: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
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Antonio Linares » Wed Mar 14, 2007 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41307
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby RAMESHBABU » 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
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 2 guests