NotesTimer class

hi,

i am using a NotesTimer to refresh the document in the top frame every 5 sec. The code in my PostOpen of the form is

Sub Postopen(Source As Notesuidocument)

Set elapsedTimer = New NotesTimer(5)

On Event Alarm From elapsedTimer Call elapsedTimerHandler

End

End Sub

I need to get an handle to the document in the top frame in my window. I have that in the PostOpen as “Source”

What i need is

  1. a way to pass the Source as an argument to the elapsedTimerHandler

OR

  1. in the elapsedTimerHandler get a handle to the document in the top frame…instead of saying uidoc=uiworkspace.currentdocument

thanks,

Pooja

Subject: NotesTimer class

Declare a NotesUIDocument variable in Globals, set it in PostOpen and use it in elapsedTimerHandler. Globals aren’t ALWAYS bad.

Subject: RE: NotesTimer class

Thanks Stan. That could have worked. I used Javascript instead.