EJERCICIO DE CADENA

Public Class Form1 Dim cmin, cmay, cnum, cadena As String Dim qmay, qmin, qnum As Integer Dim i As Integer Private Sub BtnExe_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnExe.Click Dim longitud As Integer = Len(Trim(TxtCadena.Text)) If i >= 0 And i < longitud Then i += 1 Dim caracter As String = Mid(Trim(TxtCadena.Text), i, 1) If Asc(caracter) >= 95 And Asc(caracter) <= 122 Then qmin += 1 LblQmin.Text = Str(qmin) LblCmin.Text = LblCmin.Text + caracter Me.Text = Str(qmin) + " , " + Str(longitud) + " , " + caracter End If If Asc(caracter) >= 65 And Asc(caracter) <= 90 Then qmay += 1 LblQMay.Text = Str(qmay) LblCMay.Text = LblCMay.Text + caracter Me.Text = Str(qmay) + " , " + Str(longitud) + " , " + caracter End If If Asc(caracter) >= 48 And Asc(caracter) <= 57 Then qnum += 1 LblQNum.Text = Str(qnum) LblCNum.Text = LblCNum.Text + caracter Me.Text = Str(qnum) + " , " + Str(longitud) + " , " + caracter End If ElseIf i = 5 Then MsgBox ("Llego el Limite", 0, "Advertencia") TxtCadena.Clear() TxtCadena.Focus() With LblCMay .Text = "" End With With LblQMay .Text = 0 End With With LblCmin .Text = "" End With With LblQmin .Text = 0 End With With LblCNum .Text = "" End With With LblQNum .Text = 0 End With Me.Text = "" End If End Sub End Class

ByVal e As System.Abs(mesact .Text = Str(mes) '******Semanas******* Dim semcum As Integer = Val(Mid(Fecha.Today)) sem = Math.Text LblCumple.Forms. 2)) Dim semact As Integer = Val(Weekday(Date.diacum) LblDias.Windows.KeyChar = Chr(13) Then Dim Fecha As String = txtdd. 10)) Dim anoact As Integer = Val(Year(Date.semact)) / 4) LblSem.mescum) LblMes.EJERCICIO DE FECHAS Public Class FrmFecha Dim sem as Double Private Sub Txtaaaa_KeyPress(ByVal sender As Object.Today)) Dim mes As Integer = Math. "Long Date") '******Años******* Dim anocum As Integer = Val(Mid(Fecha.KeyPressEventArgs) Handles txtaaaa. 7.Text = Str(dia) End If End Sub End Class .KeyPress If e. 5)) Dim mesact As Integer = Val(Month(Date.Abs((semcum . 4.Today)) Dim anos As Integer = Math. 2)) Dim dia As Integer = Math.Text = Str(anos) '******Mes******* Dim mescum As Integer = Val(Mid(Fecha. 1.Text + "/" + txtaaaa.Round(Math. 1.Text + "/" + txtmm.Text = Str(sem) '******Días********** Dim diacum As Integer = Val(Mid(Fecha. 1.Today.Abs(diaact .Abs(anoact .Text = Format(Fecha.anocum) LblEdad. 2)) Dim diaact As Integer = Val(Mid(Date.