Edifice Posted February 11, 2009 Share Posted February 11, 2009 Func generatecolor() $color = "None" If GUICtrlread($check_color_black) = 1 Then $color = $color + "Black, " EndIf If GUICtrlread($check_color_blue) = 1 Then $color = $color + "Blue, " EndIf IF GUICtrlread($check_color_green) = 1 Then $color = $color + "Green, " EndIf If GUICtrlread($check_color_red) = 1 Then $color = $color + "Red, " EndIf IF GUICtrlread($check_color_silver) = 1 Then $color = $color + "Silver, " EndIf If GUICtrlread($check_color_yellow) = 1 Then $color = $color + "Yellow, " EndIf MsgBox(0, "Colors", $color) EndFunc All these $check_color_ - thingies are checkboxes. Whenever I check one or more of the checkboxes off, All I get in my msgbox is a 0. If I don't check them off I get the declared value of the $color I'm just wondering why, and was hoping one of you could explain that to me Link to comment Share on other sites More sharing options...
FireFox Posted February 11, 2009 Share Posted February 11, 2009 @Edifice Youre using '+' for add strings in string, and its not a properly use, its only for numbers or something else... Try '&' instead Cheers, FireFox. Link to comment Share on other sites More sharing options...
Edifice Posted February 11, 2009 Author Share Posted February 11, 2009 Ofcourse! - Thx And thank you for being so overbearing with my stupidity Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now