Does the LotusScript NotesTimer class work under the Mac operating system?
If yes, can you give me an example.
Does the LotusScript NotesTimer class work under the Mac operating system?
If yes, can you give me an example.
Subject: All of LotusScript is supposed to be OS neutral
If you find it’s not working, we would be interested to know about it – but try the same code on Windows first to make sure it’s really an OS-related issue.
As far as examples are concerned, the examples in the help file apply to Mac.
Subject: Definitely didn’t work in the R6 days
And someone told me in the Business Partner forum that it definitely didn’t work in the R6 days.
Subject: It works under MS Windows but not under Mac OS
I have created a test database with the following simple code in a form.
Global Declaration:::
Public g_nt As NotesTimer
Public g_lngElapsedTime As Long
Global Subroutine:::
Public Sub ElapsedTimerHandler(Source As NotesTimer)
g_lngElapsedTime = g_lngElapsedTime + 1
Print Getthreadinfo( 1 ) & " - " & g_lngElapsedTime
End Sub
Postopen event:::
Sub Postopen(Source As Notesuidocument)
Set g_nt = New NotesTimer( 2, "Comment" )
On Event Alarm From g_nt Call ElapsedTimerHandler
Print "Timer is enabled: " & g_nt.Enabled
End Sub
When I use the form under MS Windows the result is as expected.
In the statusbar you can see the number increased by the alarm event.
But when I use the form under Mac OS the Postopen event prints
that the NotesTimer is enabled but not other status will be printed.
The ElapsedTimerHandler event will not be triggered.
I used the following software versions:
Operating System: Mac OS X Version 10.5.2
IBM Lotus Notes: 8.5 Beta - Release 20080116.1352
You can find my test database in the Business Partner Database
as a bug report with the PBR ID JWIN7GEBVR.
Subject: OK – we have an SPR for it now.