Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/08/2013, 02:39
meula
 
Fecha de Ingreso: abril-2007
Mensajes: 163
Antigüedad: 17 años, 1 mes
Puntos: 2
Respuesta: Referencia a objeto no establecida como instancia de un objeto.

El problema es el plantemiento lógico del bucle.
Fíjate en las lineas 9 y 10

While (Not text Is Nothing)
text = leer.ReadLine()

Pasa la linea 9, y al leer la PRÓXIMA linea retorna Null, pero ya está dentro del bucle.
Debes plantear así el buclie

text=leer.ReadLine()
While(Not text is nothing)
'Tu código
text=leer.ReadLine()
end while
__________________
http://literaturaprogramada.blogspot.com.es/
literaturapogramada.blogspot - Reflexiones mundanas sobre la programación