home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / LOTUS / Eng-ins / SMASTERS / APPROACH / CHECKBK.MPR / SCRIPT / ApproachDoc / CheckbkWindow.s (.txt) < prev    next >
Null Bytes Alternating  |  1997-01-09  |  3KB  |  36 lines

  1. '++LotusScript Development Environment:2:5:(Options):0:66
  2.  
  3. '++LotusScript Development Environment:2:5:(Forward):0:1
  4. Declare Sub Recordchange(Source As Docwindow)
  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 DOCWINDOW
  11.     Set Source = Bind(Objectname_)
  12.     On Event Recordchange From Source Call Recordchange
  13. End Sub
  14.  
  15. '++LotusScript Development Environment:2:2:Recordchange:1:12
  16. Sub Recordchange(Source As Docwindow)
  17.     If currentview.name="Data Entry Screen" Then
  18.         If currentview.body.commitflag.text="1" Then
  19.             currentview.body.voidbutton.text="Remove this transaction from the balance"
  20.         Else
  21.             currentview.body.voidbutton.text="Apply this transaction to the balance"
  22.         End If
  23.         If currentview.body.Transtype.text="Check" Then
  24.             currentview.body.Checknumber.visible=True
  25.             currentview.body.Depositnumber.visible=False
  26.         Else
  27.             If currentview.body.Transtype.text="Deposit" Then
  28.                 currentview.body.Checknumber.visible=False
  29.                 currentview.body.Depositnumber.visible=True
  30.             Else
  31.                 currentview.body.Checknumber.visible=False
  32.                 currentview.body.Depositnumber.visible=False
  33.             End If
  34.         End If
  35.     End If
  36. End Sub