LotusScript version of KillNotes

Paste the code below into a button – then you have a simple ‘Click to kill’ feature 🙂
Works in both 7.02 and 8.5….

Sub Click(Source As Button)
Dim a As Variant
a = Split( “”, “#” )
a = Arrayappend( a, getData())
End Sub

Function getData() As Variant
Exit Function
End Function

7 tanker om "LotusScript version of KillNotes"

  1. “Write me an e-mail, if your e-mail doesn’t work”.

    And by the way, wouldn’t it be better, if you executed the nsd.exe with the -kill switch? Then you would also get crash logs… IF you are able to press the button 🙂

  2. Just click on the large, gray, window with the errors listed, and press Enter. The button is selected by default, even if we can’t see it.

  3. Thank you for all the comments 🙂

    Ofcourse the code example doesn’t have any practical use, but:
    – It shows the importance of controlling/validating the data in your code. When calling a function that returns a variant – you dont know what you get, so some kind of validation is required before using it
    – And, when writing a function, please let it return something meningfull, always! don’t just exit the function (like I did in the sample)
    – It shows a bug i Lotus Script, so you can avoid it and Lotus can fix it.

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *

*