Arantsa Private Sub Command1_Click() If LCase(Text1) = LCase(Text2) Then Label3.Caption = "Palabras iguales" Else Label3.Caption = "Palabras diferentes" EndIf End Sub
Problema N 5
Private sub command_click () i=0 minusculas=0 mayusculas=0 sp=
For i=1 to len(text1.text) X= mid(text1.text, i , 1) If x= (a) or (e) or (i) or (o) or (u) then minusculas= minusulas+1 end if if x= (A) or(E) or (I) or (O) or(U) then mayusculas=mayusculas+1 end if if x= sp sp=sp+1 end if
next
label3,caption= hay & mayusculas & vocales mayusculas y & minuscilas & vocales minusculas
Programa vocales Frase
Label3 Text1 Calcular Katherin
Label11.Caption = Day(Date) Label3.Caption = Month(Date) Label5.Caption = Year(Date) marz = 31 ab = 30 may = 31 jun = 30 jul = 31 ago = 31 sep = 30 octu = 31 nov = 30 dic = 31 If Label3.Caption = 3 Then marzo = marz - Day(Date) tot = marzo + ab + may + jun + jul + ago + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 4 Then abril = ab - Day(Date) tot = abril + may + jun + jul + ago + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 5 Then mayo = may - Day(Date) tot = mayo + jun + jul + ago + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 6 Then junio = jun - Day(Date) tot = junio + jul + ago + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 7 Then julio = jul - Day(Date) tot = julio + ago + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 8 Then agosto = ago - Day(Date) tot = agosto + sep + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 9 Then septi = sep - Day(Date) tot = septi + octu + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 10 Then octub = octu - Day(Date) tot = octub + nov + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 11 Then novi = nov - Day(Date) tot = novi + dic Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If If Label3.Caption = 12 Then tot = 31 - Day(Date) Label8.Caption = tot & " Dias faltan para el 31/12/2014 " Label9.Caption = tot - 7 & " Dias faltan para el 24/12/2014 " End If
N12 donelsy
Private Sub Command1_Click() Label2.Caption = Replace(Text1.Text, " ", "*") End Sub
Programa n 8 Private Sub Command1_Click() Label3.Caption = UCase(Replace(Text1.Text, " ", "")) End Sub
Private Sub Command1_Click() If Text1.Text = 1 Then Label4.Caption = "Uno" End If If Text1.Text = 2 Then Label4.Caption = "Dos" End If If Text1.Text = 3 Then Label4.Caption = "Tres" End If If Text1.Text = 4 Then Label4.Caption = "Cuatro" End If If Text1.Text = 5 Then Label4.Caption = "Cinco" End If If Text1.Text = 6 Then Label4.Caption = "Seis" End If If Text1.Text = 7 Then Label4.Caption = "Siete" End If If Text1.Text = 8 Then Label4.Caption = "Ocho" End If If Text1.Text = 9 Then Label4.Caption = "Nueve" End If If Text1.Text = 10 Then Label4.Caption = "Diez" End If End Sub
Private Sub Command2_Click() Text1.Text = "" Label4.Caption = "" Text1.SetFocus End Sub
Private Sub Command3_Click() End End Sub
BARUC: solo falta la forma Label2.Caption = Date If Month(Date) = 3 Then Label3.Caption = Day(Date) & " de Marzo del " & Year(Date) End If