[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/includes/helper.php on line 1417: Trying to access array offset on false
[phpBB Debug] PHP Warning: in file [ROOT]/ext/alfredoramos/seometadata/includes/helper.php on line 1418: Trying to access array offset on false
Problema, al recorrer LV Checked - Indetectables
Buenas, una duda, tengo un listview, donde si está checked mando una función
( es conexión ) , el problema es que esté o no checked, siempre envia la función
si hay 1 solo " amigo " en el listview, si hay dos, al segundo no se lo envia ni al tercero
pero el primero, siempre se envia esté checked o no, y me gustaría solucionarlo, os pongo
una de las funciones que dá error:

Código: Seleccionar todo

On Error Resume Next
If LV.ListItems.Count = 0 Then Exit Sub

mensaje = InputBox("Message to send", "Write your message")



For i = 0 To LV.ListItems.Count - 1

If LV.ListItems.Item(i).Checked = True Then
 ws(sIndex).SendData "msg" & "\" & mensaje
DoEvents
Sleep (1000)
End If
Next i

Envia un mensaje a la conexión, bueno no hace falta explicarlo se entiendo, la cosa es que
si le quito el On Error Resume next, me dice que el For i está fuera de intervalos o algo así
por eso se lo puse... a ver que me deciís.
Imagen

http://img844.imageshack.us/img844/8088/mujerrara.jpg
http://img715.imageshack.us/img715/5813/tigree.png
http://img830.imageshack.us/img830/6484/camaleon.png

http://img839.imageshack.us/img839/4944/tigrev2.jpg
http://img843.imageshack.us/img843/443/spidermanxn.png

http://www.youtube.com/watch?v=wHYYkciIKE0
dapimp escribió:es lo que uso en el iGOL
proba con
for i = 1 to LV.ListItems.Count
yo creo que ahi funciona....
Salu2

Si señor, solucionado. Gracias bro
Imagen

http://img844.imageshack.us/img844/8088/mujerrara.jpg
http://img715.imageshack.us/img715/5813/tigree.png
http://img830.imageshack.us/img830/6484/camaleon.png

http://img839.imageshack.us/img839/4944/tigrev2.jpg
http://img843.imageshack.us/img843/443/spidermanxn.png

http://www.youtube.com/watch?v=wHYYkciIKE0
Cerrado

Volver a “VB/.NET”