Erase_Window and MsgLog.sh

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #773
    AndyColson
    Participant

    Jeez, I feel like I’m spamming the message board…

    Anway, I came across a bug^H^H^H question with MsgLog.sh. If I #include it there is a compile error. If I comment out function MsgLogMsg all is well; thought you’d all like to know.

    By the way, I really like DebugLog(), its pritty handy. I wanted to clear the log so I added a ClearDebugLog() macro, which brings me to erase_window… does it clear File_Name as well? It seems to, and if its supposed to you might mention that in the help file, cuz it really confused me for a while.

    -Andy

    #3037
    DanHughes
    Participant

    You need to be sure to #include Win32.sh before including MsgLog.sh in your source file.

    Yes, Erase_Window clears the File_Name as well.

    Post or send me your changes and I’ll see about adding them to the system.

    #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]

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.