home *** CD-ROM | disk | FTP | other *** search
- {*******************************MULTI-EDIT MACRO******************************
-
- Name: Unlock
-
- Description: Unlocks MECONFIG.DB and MECOM.DB under circumstances where
- these configuration files have somehow become locked.
-
- (C) Copyright 1989 by American Cybernetics, Inc.
- ******************************************************************************}
- $MACRO Unlock;
- def_int(jx);
- jx := window_id;
- refresh := false;
- rm('UserIn^SetConfig /DB=MECONFIG.DB');
- IF return_int THEN
- read_only := false;
- cur_file_attr := (cur_file_attr AND $FFFE) OR (read_only <> 0);
- save_file;
- make_message('MECONFIG.DB unlocked.');
- ELSE
- make_message('MECONFIG.DB not loaded.');
- END;
- rm('UserIn^SetConfig /DB=MECOM.DB');
- IF return_int THEN
- read_only := false;
- cur_file_attr := (cur_file_attr AND $FFFE) OR (read_only <> 0);
- save_file;
- END;
- rm('UserIn^SetConfig /DB=KEYMAC.DB');
- IF return_int THEN
- read_only := false;
- cur_file_attr := (cur_file_attr AND $FFFE) OR (read_only <> 0);
- save_file;
- END;
- switch_win_id( jx );
-
- END_MACRO;
-