MapInfo Pro Developers User Group

 View Only
Expand all | Collapse all

Problem with error-handling

  • 1.  Problem with error-handling

    Posted 11-03-2021 09:54
    Edited by Asko Poder 11-03-2021 15:28
      |   view attached

    I wrote a MapBasic program, which does the same as MapInfo button "Check regions", but creates table with errors (if there are any errors) in user defined location and name. When running the script and table has no errors MapInfo displays a message "Error: 1437 Check Region did not find any data problems. WinChangedHandler". I would like to control that message text, for example display it in my native language. For this reason I put "OnError Goto..." statement in the code, but for some reason it won't pick up this "Error: 1437 ..." mentioned before (so I could process the situation in error-handling routine). Why?

    Thanks in advance

    Asko Põder

    Head specialist
    Agriculture and Food Board
    Republic of Estonia

    Asko Poder
    Knowledge Community Shared Account


    zip   15 KB 1 version

  • 2.  RE: Problem with error-handling

    Posted 11-06-2021 04:22
    Edited by Asko Poder 11-06-2021 06:39