vb复数计算器.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
vb复数计算器

Dim save As String Dim a As Single Dim points, over, b, c, d, e As Boolean Private Sub Command1_Click(Index As Integer) If over = True Then Text1.Text = End If If b = True Then Text1.Text = Text1.Text Trim(Str(Index)) ElseIf c = True Then Text2.Text = Text2.Text Trim(Str(Index)) ElseIf d = True Then Text4.Text = Text4.Text Trim(Str(Index)) ElseIf e = True Then Text5.Text = Text5.Text Trim(Str(Index)) End If over = False End Sub Private Sub Command2_Click() If points = False Then If b = True Then If Text1.Text = Then Text1.Text = 0 . points = True Else Text1.Text = Text1.Text . points = True End If ElseIf c = True Then If Text2.Text = Then Text2.Text = 0 . points = True Else Text2.Text = Text2.Text . points = True End If ElseIf d = True Then If Text4.Text = Then Text4.Text = 0 . points = True Else Text4.Text = Text4.Text . points = True End If ElseIf e = True Then If Text5.Text = Then Text5.Text = 0 . points = True Else Text5.Text = Text5.Text . points = True End If End If End If End Sub Private Sub Command3_Click() If b = True Then If Text1.Text Then Text1.Text = Left(Text1.Text, Len(Text1.Text) - 1) End If ElseIf c = True Then If Text2.Text Then Text2.Text = Left(Text2.Text, Len(Text2.Text) - 1) End If ElseIf d = True Then If Text4.Text Then Text4.Text = Left(Text4.Text, Len(Text4.Text) - 1) End If ElseIf e = True Then If Text5.Text Then Text5.Text = Left(Text5.Text, Len(Text5.Text) - 1) End If End If End Sub Private Sub Command4_Click(Index As Integer) Const Pi = 3.1415926 Select Case Index Case 0 Text3.Text = Str(Val(Text1.Text) + Val(Text2.Text)) Text6.Text = Str(Val(Text4.Text) + Val(Text5.Text)) Text7.Text = Sqr(Val((Text4.Text) * Val(Text4.Text)) + (Val(Text1.T

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档