Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: GoSu_KaOs on November 10, 2004, 09:56 PM

Title: Need help with Allseen command
Post by: GoSu_KaOs on November 10, 2004, 09:56 PM
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.
Title: Re: Need help with Allseen command
Post by: BaDDBLooD on November 10, 2004, 10:47 PM
Just use a loop


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


Modify it to suit your needs
Title: Re: Need help with Allseen command
Post by: Minux on November 13, 2004, 06:20 PM
Quote from: BaDDBLooD on November 10, 2004, 10:47 PM
Just use a loop


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


Modify it to suit your needs


For i = 1 To ListView1.ListItems.Count
     Print #1, listView1.ListItems.Item(i).Text
Next i
Title: Re: Need help with Allseen command
Post by: BaDDBLooD on November 13, 2004, 10:01 PM
Quote from: Minus on November 13, 2004, 06:20 PM
Quote from: BaDDBLooD on November 10, 2004, 10:47 PM
Just use a loop


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


Modify it to suit your needs


For i = 1 To ListView1.ListItems.Count
     Print #1, listView1.ListItems.Item(i).Text
Next i


Yeah, sorry.. that was a quicky response.

EDIT: Thanks for correcting it minus