home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 October A / Pcwk10a98.iso / Lotus / LOTUS / SMASTERS / APPROACH / SCHEDULE.MPR / SCRIPT / ApproachDoc / Reservation / Body / btnCancel.s (.txt) < prev    next >
Encoding:
Null Bytes Alternating  |  1997-01-09  |  2.4 KB  |  32 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  5.  
  6. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7.  
  8. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9. Private Sub BindEvents(Byval Objectname_ As String)
  10.     Static Source As BUTTON
  11.     Set Source = Bind(Objectname_)
  12.     On Event Click From Source Call Click
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Click:1:12
  16. Sub Click(Source As Button, X As Long, Y As Long, Flags As Long)
  17. ' Click event for the btnCancel button object on the Reservation view
  18. ' This script records the date last set in the Reservation view and
  19. ' switches to the Schedule Display view, for the date last set.
  20.     
  21.     Dim dateReserved As String
  22.     
  23.     ' Store the date last set in the Reservation view
  24.     dateReserved = source.fbxDate.text
  25.     
  26.     ' Switch to the Schedule Display view
  27.     Set currentwindow.activeview = currentdocument.Schedule~ Display
  28.     
  29.     ' Set the date on the Schedule Display view to the date from the Reservation view
  30.     currentview.body.fbxDateDisplay.text = dateReserved
  31.     
  32. End Sub        ' Click event for btnCancel on the Reservation view