Error 4 in module 42

This error pops up sometimes, without a clear cause or giving a clue what was happening. Sounds familiar to you? Here’s the reason and the solution. The error is (in most cases) related to having a Dialog box on screen to show the progress of some process. When the text to be displayed is too long for the Dialog field, you will get the Error 4 in module 42 message. There seems to be an undocumented limit of 80 characters here. Knowing the reason, the solution is simple: TextToDiaply := YourVariable; TextToDisplay := COPYSTR(TextToDisplay,1,80); dialog.update(number, TextToDisplay); John

This topic is discussed here Lars Strøm Valsted Head of Project and Analysis Columbus IT Partner A/S