文件名称:calc
- 所属分类:
- 汇编语言
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- s*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
计算器 有数字按键 + - * / 都有-Public sym, tmp
Public Sub Cl_Click()
txt = ""
Form1.sym = ""
Form1.tmp = ""
End Sub
Public Sub cmd_Click(Index As Integer)
If InStr(1, txt, "=") <> 0 Then txt = ""
txt = txt & Index
End Sub
Public Sub pt_Click()
txt = txt & "."
End Sub
Private Sub Form_Load()
sym = ""
End Sub
Public Sub oth_Click(Index As Integer)
Form1.equ_Click
Form1.sym = oth(Index).Caption
If Replace(txt, vbCrLf, "") <> txt Then
txt = Form1.tmp
Else
End If
txt = txt & vbCrLf & Form1.sym
End Sub
Public Sub equ_Click()
Select Case Form1.sym
Case "+"
Form1.tmp = Val(txt)+ Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "-"
Form1.tmp = Val(txt)- Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "*"
Form1.tmp = Val(txt)* Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "/"
Form1.tmp = Val(txt)/Val(Mid(txt, (
Public Sub Cl_Click()
txt = ""
Form1.sym = ""
Form1.tmp = ""
End Sub
Public Sub cmd_Click(Index As Integer)
If InStr(1, txt, "=") <> 0 Then txt = ""
txt = txt & Index
End Sub
Public Sub pt_Click()
txt = txt & "."
End Sub
Private Sub Form_Load()
sym = ""
End Sub
Public Sub oth_Click(Index As Integer)
Form1.equ_Click
Form1.sym = oth(Index).Caption
If Replace(txt, vbCrLf, "") <> txt Then
txt = Form1.tmp
Else
End If
txt = txt & vbCrLf & Form1.sym
End Sub
Public Sub equ_Click()
Select Case Form1.sym
Case "+"
Form1.tmp = Val(txt)+ Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "-"
Form1.tmp = Val(txt)- Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "*"
Form1.tmp = Val(txt)* Val(Mid(txt, (InStr(1, txt, Form1.sym)+ 1)))
txt = txt & vbCrLf & "=" & Form1.tmp
Case "/"
Form1.tmp = Val(txt)/Val(Mid(txt, (
(系统自动生成,下载前可以参看下载内容)
下载文件列表
calc
....\Form1.frm
....\MSSCCPRJ.SCC
....\Project1.exe
....\Project1.vbp
....\Project1.vbw
....\Form1.frm
....\MSSCCPRJ.SCC
....\Project1.exe
....\Project1.vbp
....\Project1.vbw