Wherever used (tried button and toolbar icon) always give the error “Cannot execute the specified command”.This problem also exists in the notes 8.0 clients (basic and standard).
Subject: You can simulate ALT+f4+enter
You can simulate ALT+f4+enter in lotusscript:
[Declarations]
Declare Sub keybd_event Lib “user32.dll” (Byval bVk As Integer, Byval bScan As Integer, Byval dwFlags As Integer,Byval dwExtraInfo As Integer)
Sub Initialize
keybd_event 18,0,0,0 ' Alt down
keybd_event 115,0,0,0 ' F4 down
keybd_event 115,0,2,0 ' F4 up
keybd_event 18,0,2,0 ' Alt up
keybd_event 13,0,0,0 ' enter up
keybd_event 13,0,2,0 ' enter down
End Sub