Reply To: Erase_Window and MsgLog.sh

Product Compare Forums Multi-Edit Support Erase_Window and MsgLog.sh Reply To: Erase_Window and MsgLog.sh

#3043
AndyColson
Participant

[code:3rd014bo]
void ClearDebugLog(int LogNum)
{
int Tw = Window_Id;
int Tr = Refresh;

if ( LogNum > 0 ) {
Refresh = false;
if ( !Switch_Win_Id( Global_Int( "~MSGLOG-" + Str( LogNum ) ) ) ) {
Rm( "CreateWindow" );
Set_Global_Int( "~MSGLOG-" + Str( LogNum ), Window_Id );
File_Name = "MSG-" + Str( LogNum ) + ".LOG";
}
str s = File_Name;
Erase_Window;
File_Name = s;
Switch_Win_Id( Tw );
Refresh = Tr;
}
}

[/code:3rd014bo]