home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 October A / Pcwk10a98.iso / Lotus / LOTUS / SMASTERS / APPROACH / SCHEDULE.MPR / SCRIPT / ApproachDoc / Schedule Display / Body / btnPrev.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 btnPrev button object in the Schedule Display view.
  18. ' This script changes the date to the previous day, clears the display
  19. ' of reservation information from other days, and redisplays the information
  20. ' for the new day.
  21.     
  22.     ' Set the new date by decrementing the date by one
  23.     source.fbxDateDisplay.text = Str$(Datevalue(source.fbxDateDisplay.text) - 1)
  24.     
  25.     ' Clears reservation information from the view
  26.     Call clearDisplay()
  27.     
  28.      ' Reads reservation info from the schedule database and 
  29.     ' puts that information on the view
  30.     Call readBlock (source.fbxDateDisplay.text)
  31.     
  32. End Sub        ' Click event for the btnPrev object on the Schedule Display view