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

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

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

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post 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
Post Reply