Federico

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Private Sub Command1Click()

Dim a, b, c, d, e, f, g, h, i, f As Integer
a Jal(Text1.Text)
b Jal(Text2.Text)
c Jal(Text3.Text)
d Jal(Text4.Text)
e Jal(Text5.Text)
f Jal(Text6.Text)
g Jal(Text7.Text)
h Jal(Text8.Text)
i Jal(Text9.Text)
Text9 (a * 2500) (b * 1500) (c * 1500) (d * 2500) (e * 2000) (f * 1000) (g *
1000) (h * 1500)
Text10 Text9 - (18 * 100)
End Sub

Private Sub Command2Click()


Text1.Text ""
Text2.Text ""
Text3.Text ""
Text4.Text ""
Text5.Text ""
Text6.Text ""
Text7.Text ""
Text8.Text ""
Text9.Text ""
Text10.Text ""
Text11Text ""
End Sub

Private Sub Command3Click()


End
End Sub
Private Sub restauranteClick()

End Sub

Private Sub FormLoad()


GrdMenu.Cols 2
GrdMenu.Rows 9
GrdMenu.FixedCols 0
GrdMenu.FixedRows 1
GrdMenu.TextArray(0) "Menu"
GrdMenu.TextArray(1) "Precio"
GrdMenu.TextArray(2) "Hamburguesa"
GrdMenu.TextArray(3) "2500"
GrdMenu.TextArray(4) "Cerve:a"
GrdMenu.TextArray(5) "1500"
GrdMenu.TextArray(6) "Gaseosa"
GrdMenu.TextArray(7) "1500"
GrdMenu.TextArray(8) "Ensalada"
GrdMenu.TextArray(9) "2500"
GrdMenu.TextArray(10) "Salchichas"
GrdMenu.TextArray(11) "2000"
GrdMenu.TextArray(12) "Refresco"
GrdMenu.TextArray(13) "1000"
GrdMenu.TextArray(14) "Sopa"
GrdMenu.TextArray(15) "1000"
GrdMenu.TextArray(16) "Postre"
GrdMenu.TextArray(17) "1500"
End Sub

Private Sub Text1KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text1.Text "" Then
MsgBox ("digite un numero")
Text1.SetFocus
Else
Text2.SetFocus
End If
End If
End Sub

Private Sub Text2KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text2.Text "" Then
MsgBox ("digite un numero")
Text2.SetFocus
Else
Text3.SetFocus
End If
End If
End Sub

Private Sub Text3KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text3.Text "" Then
MsgBox ("digite un numero")
Text3.SetFocus
Else
Text4.SetFocus
End If
End If
End Sub

Private Sub Text4KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text4.Text "" Then
MsgBox ("digite un numero")
Text4.SetFocus
Else
Text5.SetFocus
End If
End If
End Sub

Private Sub Text5KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text5.Text "" Then
MsgBox ("digite un numero")
Text5.SetFocus
Else
Text6.SetFocus
End If
End If
End Sub

Private Sub Text6KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text6.Text "" Then
MsgBox ("digite un numero")
Text6.SetFocus
Else
Text7.SetFocus
End If
End If
End Sub

Private Sub Text7KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text7.Text "" Then
MsgBox ("digite un numero")
Text7.SetFocus
Else
Text8.SetFocus
End If
End If
End Sub

Private Sub Text8KeyPress(KeyAscii As Integer)


If KeyAscii 13 Then
If Text8.Text "" Then
MsgBox ("digite un numero")
Text8.SetFocus
Else
Text8.SetFocus
End If
End If
End Sub

You might also like