piccolo programmino base per creare una calcolatrice che somma,divide, sottrae e moltiplica due numeri!!
codice:
Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) + Val(Text2.Text)
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus ' serve per impostare direttamente il cursore nella prima text box
End Sub
Private Sub Command3_Click()
End 'esce dal programma
End Sub
Private Sub Command4_Click()
Text3.Text = Val(Text1.Text) - Val(Text2.Text)
End Sub
Private Sub Command5_Click()
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
End Sub
Private Sub Command6_Click()
Text3.Text = Val(Text1.Text) / Val(Text2.Text)
End Sub
PER ULTERIORI TUTORIAL VISITATE:
WWW.CODDINGMANIA.ALTERVISTA.ORG
un consiglio mò traducilo pure in iglese
FavaresaLove 1 year ago
@FavaresaLove graqzie per il consiglio mò =)
favarese91 1 year ago