home *** CD-ROM | disk | FTP | other *** search
Null Bytes Alternating | 1997-01-09 | 3.0 KB | 40 lines |
- '++LotusScript Development Environment:2:5:(Options):0:66
-
- '++LotusScript Development Environment:2:5:(Forward):0:1
- Declare Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
-
- '++LotusScript Development Environment:2:5:(Declarations):0:2
-
- '++LotusScript Development Environment:2:2:BindEvents:1:129
- Private Sub BindEvents(Byval Objectname_ As String)
- Static Source As BUTTON
- Set Source = Bind(Objectname_)
- On Event Click From Source Call Click
- End Sub
-
- '++LotusScript Development Environment:2:2:Click:1:12
- Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
- ' Click event for the btnReserve button object in the Schedule Display view
- ' This script opens the Reservation view with no pre-selected time or room,
- ' using the date for the schedule currently displayed.
-
- Dim btn As button ' shortened reference for a button on the Reservation view
-
- ' Assign a shorter name to reference a button on the Reservation view.
- Set btn = currentdocument.reservation.body.btnDone
-
- ' Set the text of the button to "Reserve" to indicate the action that occurs
- ' when the dialog box closes.
- btn.text = "Reserve"
-
- ' Set the reservation information to the date currently displayed, and blank
- ' start time, end time, and room name.
- GlobDateDisplay = source.fbxDateDisplay.text
- GlobStartTime = ""
- GlobEndTime = ""
- GlobRoom = ""
-
- ' Switch to the Reservation view.
- Set currentwindow.activeview = currentdocument.reservation
-
- End Sub ' Click event for btnReserve on Schedule Display view