>Hi,
>
>Have anyone a function or class to Save All current environment and obviously Restore it ??
>
>Note: All means Databases opened, order, current recno, relations, free tables, datassesions, etc.
>
>If someone have something that can help me, I'll be very happy.
>
>Thanks in advance for yor time!!!!!!
CREATE VIEW viewfilename - this takes a copy of the environment. I use it (in 2.6) in a menu system before calling programs written by programmers. This gets rid of the old problems we had of programmers saying 'close all' and other bad things in their programs. As soon as the menu program gets control back, it calls SET VIEW TO viewfilename. I normally store this file on the local drive.