This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 29, 2018, 1:07 PM
4 Posts

LotusScript Code works only in Debug Mode

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role:
  • Tags: Debugger Lotusscript
  • Replies: 4

hi

we have an adapted mailindatabase we developed in Notes 5.

An agent and a replytoall-action don't work as expected but  using the Debugger all is fine completed.

There are no "stop" 's in the code.

Any idea?

best regards

H. Mueller

Jul 1, 2018, 1:09 PM
11 Posts
my experience

is that when code works in debugger but don't without debugger then there is an error in the code.

you may try to debug with prints and withput debugger to get a hint on the error.

Jul 3, 2018, 7:47 AM
4 Posts
Part of a Solution

Hi

Thanks a lot Mic !

 

Using Print Statements I have found a solution for the ReplyToAll-Problem.

Postopen(---)

Me.m_noteUIMemo.Gotofield("Body")
Me.m_noteUIMemo.Inserttext(strSignature)   

'The following line was no more executed because of the GotoField Statement!

Me.m_noteUIMemo.reload()

End Postopen

 

So Solution was:

Postopen(---)

Me.m_noteUIMemo.reload()

Me.m_noteUIMemo.Gotofield("Body")
Me.m_noteUIMemo.Inserttext(strSignature)   

Me.m_noteUIMemo.reload()

End Postopen

 

See what surprises the Agent will bring

 

Jul 10, 2018, 8:48 PM
323 Posts
Also useful: "on error goto" / & a goto label.

 

On Error goto logError

* * * your code here * * *

exit sub

logError:

MsgBox "Error at line " & Erl & ": " & Error$

exit sub

end sub

Jul 10, 2018, 8:48 PM
323 Posts
Also useful: "on error goto" / & a goto label.

 

On Error goto logError

* * * your code here * * *

exit sub

logError:

MsgBox "Error at line " & Erl & ": " & Error$

exit sub

end sub


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal