Valhalla Legends Forums Archive | Battle.net Bot Development | I'm having trouble setting a certain forecolor for user list

AuthorMessageTime
gosu
what i am trying to accomplish is to add a specific color for each user, for example, if someone had the icon "SEXP" or the flag "13" then it will add the user to the list with the designated color. i'm not getting any luck with this, any suggestions?

i tried:
[code]
If StrFlag = "1" Then
Users.ListItems(1).ForeColor = vbYellow
ElseIf StrFlag = "13" Then
Users.ListItems(1).ForeColor = vbWhite
ElseIf StrFlag = "9" Then
Users.ListItems(1).ForeColor = vbBlue
End If
[/code]

and:
[code]
If Icon = "SEXP" Then
Users.ListItems(1).ForeColor = vbYellow
ElseIf Icon = "D2XP" Then
Users.ListItems(1).ForeColor = vbWhite
ElseIf Icon = "STAR" Then
Users.ListItems(1).ForeColor = vbBlue
End If
[/code]
May 26, 2003, 8:24 PM
OcTaViuS
there is no ForeColor option for ListItems
May 26, 2003, 11:37 PM
gosu
that explains why.. heh thanks
May 26, 2003, 11:43 PM
laurion
There is if you're using a listview..
May 26, 2003, 11:44 PM

Search