En este nuevo curso de visual basic aprenderemos a trabajar con la función substring , que nos permitira trabajar con uno o mas caracteres de un texto .
Video Tutorial
Codigo Fuente
'FUNCIONES STRING 'SUBSTRING ---> NOS PERMITE TRABAJAR CON CARACTER(ERES) DE UN TEXTO 'Dim oracion As String = "tutoriales hispanos donde aprendes viendo" 'MsgBox(oracion.Substring(0, 4)) Dim fecha As String = Date.Now '5/12/2012 Dim dias As String = fecha.Substring(0, 1) Dim meses As String = fecha.Substring(2, 2) Dim años As String = fecha.Substring(5, 4) MsgBox("La fecha es : " & fecha) MsgBox("El dia de hoy es : " & dias) MsgBox("El mes de hoy es : " & meses) MsgBox("El año de hoy es : " & años)