Valhalla Legends Forums Archive | Battle.net Bot Development | Need help with Allseen command

AuthorMessageTime
GoSu_KaOs
I need to make this command but I need some help. I know I need to make the code go through the listview and put all the names in the channel, or at least like 15 of them, in a text file.
I know how to save to a textfile but, how do I dont know the function that can go though the listview.
November 11, 2004, 3:56 AM
BaDDBLooD
Just use a loop

[code]
For i = 1 To ListView1.Count
     Output #1, listView1.Item(i).Text
Next I
[/code]

Modify it to suit your needs
November 11, 2004, 4:47 AM
Minux
[quote author=BaDDBLooD link=topic=9504.msg88362#msg88362 date=1100148479]
Just use a loop

[code]
For i = 1 To ListView1.Count
     Output #1, listView1.Item(i).Text
Next I
[/code]

Modify it to suit your needs
[/quote]

[code]
For i = 1 To ListView1.ListItems.Count
    Print #1, listView1.ListItems.Item(i).Text
Next i
[/code]
November 14, 2004, 12:20 AM
BaDDBLooD
[quote author=Minus link=topic=9504.msg88789#msg88789 date=1100391659]
[quote author=BaDDBLooD link=topic=9504.msg88362#msg88362 date=1100148479]
Just use a loop

[code]
For i = 1 To ListView1.Count
     Output #1, listView1.Item(i).Text
Next I
[/code]

Modify it to suit your needs
[/quote]

[code]
For i = 1 To ListView1.ListItems.Count
     Print #1, listView1.ListItems.Item(i).Text
Next i
[/code]
[/quote]

Yeah, sorry.. that was a quicky response.

EDIT: Thanks for correcting it minus
November 14, 2004, 4:01 AM

Search