We have a script on a button that loops thru the invoice lines and zeroes out the back-order quantity (100-200 line order just easier). At the end the button script throws up a .MessageBox("","Clear backorders complete"). When a user clicks it the message box appears as it's supposed to, click OK, go back to the lines tab and the whole screen locks up. This is Sage 100 Advanced 2015 with Scanco multbin. The script itself has been in place for years, but the message box we just added recently so they would have a verification it was done, minor request, and upon adding that message box everything went off the rails.
Tried
sMsg="Clear backorders complete")
retMsg = oSesasion.AsObject(oSession.UI).MessageBox("",sMsg)
Tried
Set oUI = oSession.AsObject(oSession.UI)
retMsg = oUI.MessageBox(".","Clear backorders complete")
didn't really seem to matter, the whole screen would just freeze after switching back to the lines tab or really any other tab.
I'm hoping someone has seen this before as I'm at a loss, we add message boxes all the time and never have i seen it lock a screen up....
------------------------------
Chris Mengerink
Director
DWD Technology Group
Fort Wayne IN
260-399-8653
------------------------------