home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 February
/
PCWK0297.iso
/
lotus
/
english
/
lotus036.dsk
/
AMORTIZE.MPR
/
SCRIPT
/
ApproachDoc
/
Amortization
/
Body
/
butDeleteAmort.s
(
.txt
)
< prev
next >
Wrap
Null Bytes Alternating
|
1995-11-12
|
3KB
|
43 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)
Dim Con As New connection
Dim QryPayment As New query
Dim RsPayment As New resultset
LoanNumberVariable=source.loan_no.text
If Con.connectto ("dbase IV") Then
Set QryPayment.connection=con
QryPayment.tablename=currentdocument.path+"payment.dbf"
QryPayment.sql="select * from """+QryPayment.tablename+""""+" WHERE Loan_no = "+LoanNumberVariable
Set RsPayment.query=QryPayment
End If
If (RsPayment.execute) Then
Dim boxType As Long, answer As Integer
boxType=MB_OKCANCEL+ MBICONQUESTION
answer=Messagebox("Click OK to delete "+Cstr(RsPayment.numrows)+" records",boxtype,"Continue?")
deletemessage
currentwindow.repaint
If answer=1 Then
For i=1 To RsPayment.numrows
RsPayment.deleterow
RsPayment.updaterow
Next i
Set a=source.txtDelMessage
Delete a
End If
End If
currentapplication.applicationwindow.domenucommand(IDM_Refresh)
End Sub