Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Programas Mario
Programas Mario
End Sub
PROGRAMA 2
End Sub
PROGRAMA 3
Dim a As Single
a = Text1.Text
Text2.Text = a * 0.394
Text3.Text = a * 0.0328084
Text4.Text = a * 0.0109361
Text5.Text = a * 0.01
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub
End
End Sub
PROGRAMA 4
Private Sub Command1_Click()
Text4.Visible = "FALSE"
Label4.Visible = "FALSE"
End Sub
Label2.Caption = "ALTURA"
Text4.Visible = "FALSE"
Label4.Visible = "FALSE"
End Sub
Label2.Caption = "ALTURA"
Label4.Visible = "FALSE"
End Sub
Label4.Caption = "ALTURA"
Text4.Visible = "TRUE"
Label4.Visible = "TRUE"
End Sub
Label1.Caption = ""
Label2.Caption = ""
Label4.Caption = ""
Text3.Text = ""
Text4.Text = ""
Text1.Text = ""
Text2.Text = ""
End Sub
End
End Sub
PROGRAMA 5
Private Sub Command1_Click()
Label1.Visible = "TRUE"
Image1.Visible = "TRUE"
Image2.Visible = "False"
Label1.Visible = "true"
Label2.Visible = "true"
Label3.Visible = "true"
Label4.Visible = "true"
End Sub
Label1.Visible = "TRUE"
Image2.Visible = "TRUE"
Image1.Visible = "False"
Label1.Visible = "true"
Label2.Visible = "true"
Label3.Visible = "true"
Label4.Visible = "true"
Label2.Caption = "La mejor protección que cualquier mujer puede tener es el coraje"
Label3.Caption = "Por muy poderosa que sea el arma de la belleza, desgraciada la mujer que sólo a
este recurso debe el triunfo alcanzado sobre el hombre"
Label4.Caption = "Las mujeres han vivido todos estos siglos como esposas, con el poder mágico y
delicioso de reflejar la figura del hombre, el doble de su tamaño natural"
End Sub
Private Sub Command3_Click()
Label1.Visible = "false"
Image2.Visible = "false"
Image1.Visible = "False"
Label1.Visible = "false"
Label2.Visible = "false"
Label3.Visible = "false"
Label4.Visible = "false"
End Sub
End
End Sub
Label1.Visible = "FALSE"
Label2.Visible = "FALSE"
Label3.Visible = "FALSE"
Label4.Visible = "FALSE"
Image1.Visible = "FALSE"
Image2.Visible = "FALSE"
End Sub
PROGRAMA 6
Dim CAL As Double
Text1.Text = ""
End Sub
CAL = Text1.Text
MsgBox "REPROBADO"
End If
MsgBox "APENITAS"
End If
MsgBox "BIEN"
End If
End If
End If
End Sub
End
End Sub
PROGRAMA 7
Private Sub Command1_Click()
End Sub
End If
End If
End If
Text14.Text = Val(Text13.Text)
End If
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
Label10.Caption = ""
End Sub
End
End Sub
PROGRAMA 8
Private Sub Command1_Click()
Case 1
Case 2
Case 3
Case 4
End Select
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Label3.Caption = ""
End Sub
End
End Sub
End Sub
PROGRAMA 9
Private Sub Command1_Click()
Form2.Show
Form1.Hide
Else
End If
End Sub
PROGRAMA 10
Dim OPCION As Integer
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub
OPCION = Text1.Text
Select Case OPCION
Case 1
Case 2
Case 3
Case 4
End Select
MsgBox "Error"
End If
PROGRAMA 11
Dim NUM As Integer
SUMA = 0
Picture1.Print SUMA
Next NUM
Print SUMA
End Sub
End
End Sub
NUM = 1
SUMA = 0
NUM = NUM + 2
Picture1.Print SUMA
Loop
End Sub
PROGRAMA 12
Dim NUM As Integer
SUMA = 0
Next NUM
End Sub
End
End Sub
PROGRAMA 13
Dim NUM As Integer
NUM = 1
RES = 0
TABLA = Text1.Text
NUM = NUM + 1
Wend
Form1.Hide
Form2.Show
End Sub
Picture1.Cls
End Sub
End
End Sub
PROGRAMA 14
Dim A As Integer
Dim B As Integer
For B = 1 To 10
RESULTADO = A * B
Picture1.Print A, B, RESULTADO
Next B
Picture1.Print "_______________________"
Next A
End Sub
End Sub
End
End Sub
PROGRAMA 15
Private Sub Combo1_CLICK()
Else
Else
Else
End If
End If
End If
End If
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Label1.Caption = ""
End Sub
End
Form1.Hide
Form2.Show
End Sub
Private Sub Form_Load()
End Sub
End Sub
End Sub
End Sub
End Sub
PROGRAMA 16
Dim A As Integer
Dim B As Integer
Label1.Visible = True
Label2.Visible = True
Label3.Visible = False
Text1.Visible = True
Text2.Visible = True
Text3.Visible = False
Picture1.Visible = False
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = False
Text1.Visible = True
Text2.Visible = True
Text3.Visible = False
Picture1.Visible = False
End Sub
Private Sub CM_PULGADAS_Click()
Label1.Visible = True
Label2.Visible = True
Label3.Visible = False
Text1.Visible = True
Text2.Visible = True
Text3.Visible = False
Picture1.Visible = False
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = False
Text1.Visible = True
Text2.Visible = True
Text3.Visible = False
Picture1.Visible = False
End Sub
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Picture1.Visible = True
A=3
For B = 1 To 10
RESULTADO = A * B
Picture1.Print A, B, RESULTADO
Next B
Picture1.Print "________________________________"
End Sub
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Picture1.Visible = True
A=5
For B = 1 To 10
RESULTADO = A * B
Picture1.Print A, B, RESULTADO
Next B
Picture1.Print "________________________________"
End Sub
Private Sub DEL_7_Click()
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Picture1.Visible = True
A=7
For B = 1 To 10
RESULTADO = A * B
Picture1.Print A, B, RESULTADO
Next B
Picture1.Print "________________________________"
End Sub
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Picture1.Visible = True
A=9
For B = 1 To 10
RESULTADO = A * B
Picture1.Print A, B, RESULTADO
Next B
Picture1.Print "________________________________"
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Text1.Visible = True
Text2.Visible = True
Text3.Visible = True
Picture1.Visible = False
End Sub
Label1.Visible = False
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Picture1.Visible = False
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Label1.Caption = ""
Label2.Caption = ""
Label3.Caption = ""
Picture1.Cls
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Text1.Visible = True
Text2.Visible = True
Text3.Visible = True
Picture1.Visible = False
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Text1.Visible = True
Text2.Visible = True
Text3.Visible = True
Picture1.Visible = False
End Sub
End
End Sub
Label1.Visible = True
Label2.Visible = True
Label3.Visible = True
Text1.Visible = True
Text2.Visible = True
Text3.Visible = True
End Sub
PROGRAMA 17
Dim PAISES(6) As String
PAISES(0) = "ARGENTINA"
PAISES(1) = "BRASIL"
PAISES(2) = "COLOMBIA"
PAISES(3) = "ECUADOR"
PAISES(4) = "CHILE"
PAISES(5) = "GUATEMALA"
PAISES(6) = "MÉXICO"
For X = 0 To 6
End Sub
PROGRAMA 18
Private Sub Command1_Click()
For INDICE = 1 To 10
Next
MAYOR = VECTOR(1)
For INDICE = 1 To 10
MAYOR = VECTOR(INDICE)
End If
Next
MENOR = MAYOR
For INDICE = 1 To 10
MENOR = VECTOR(INDICE)
End If
Next
Label1.Caption = "MAYOR"
Label2.Caption = "MENOR"
Text1.Text = MAYOR
Text2.Text = MENOR
End Sub
PROGRAMA 19
Dim MENSAJE As String
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
End Sub
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
End Sub
Adodc1.Recordset.AddNew
End Sub
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Then
Else
Adodc1.Recordset.Update
End If
End Sub
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
End Sub
End
End Sub
KeyAscii = 0
End If
End If
End Sub