viernes, 9 de noviembre de 2012

calculadora visual basic 6.0

código de suma:

Txt3.Text = Val(txt1.Text) + Val(Txt2.Text)
lblsigno.Caption = "+"


código de resta:

Txt3.Text = Val(txt1.Text) - Val(Txt2.Text)
lblsigno.Caption = "-"

código de multiplicación:

Txt3.Text = Val(txt1.Text) * Val(Txt2.Text)
lblsigno.Caption = "*"


código de división:

If Txt2.Text = 0 Then
MsgBox "error", vbCritical, "information"
Txt2.Text = ""
Else
Txt3.Text = Val(txt1.Text) / Val(Txt2.Text)
lblsigno.Caption = "/"
End If




1 comentario:

  1. Play slots online in NJ now - DRMCD
    A good amount 영주 출장샵 of online slot games are available on your desktop or mobile device. 충청북도 출장마사지 from the casino 공주 출장안마 to your smartphone with your 경상남도 출장안마 desktop or 제주도 출장안마 mobile browser.

    ResponderEliminar