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 http://www.navision.net/forum/topic.asp?TOPIC_ID=490&FORUM_ID=24&CAT_ID=3&Topic_Title=error+4+in+module+42&Forum_Title=Attain%2FFinancials+%2D+Errors+Ecetera Lars Strøm Valsted Head of Project and Analysis Columbus IT Partner A/S www.columbusitpartner.com