Ver Mensaje Individual
  #25 (permalink)  
Antiguo 22/09/2008, 08:24
Avatar de moradazo
moradazo
 
Fecha de Ingreso: julio-2008
Ubicación: [email protected]
Mensajes: 355
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Visual Basic 2005: TextBox

Hola que tal todos! quiero borrar una línea del textbox, las líneas las calculo así:

NumLineas = Textbox.Lines.Lenght

Entonces digamos que quiero encontrar la línea 7 que dice "Hola" y me la borre o la reemplace por un NULL, he tratado así:

Código PHP:
for i=0 to NumLineas
 
if textbox.lines(i) = "Hola" then
    Textbox
.Text.Remove(i)
 
End If
Next 
También he probado con:

Código PHP:
for i=0 to NumLineas
 
if textbox.lines(i) = "Hola" then
   ancho 
Len(textbox.Lines(i))
   
textbox.Lines(i).Remove(0ancho)
 
End If
Next 
Ninguna de las dos formas lo hace, será que estoy equivocado en algo? si me pueden dar una mano les agradeceré muchísimo. Gracias!