When I make like 5 option button in a same frame what can I do that none of them is automaticly choosen when the program starts. Allways one of them have value true in the beginning even if I have not choose it.
There seems to be some confusion. If you want NO options selected, make sure the value property for all of them is False at design time, and/or set it to false using a loop like sunaj has. If you are making anything other than a survey though, you might want to reconsider. It is not considered user-friendly to have no options selected in many cases, and it opens up some awful doors. For instance, do you have a way to turn them all off again if the user changes his/her mind? One good approach is to have an extra option that equates to "none" or "unknown", or "unspecified". Make this one the default. This also gives you a default database entry value. For instance, having male or female options sounds great, but you obviously can't have one as the default or some embarassing mistakes happen. And, setting your database value to 0 or whatever, depending on there NOT being a gender selected is, well, sloppy. Since there IS the possibility that we might not know the gender of a client at the time the initial entry is made, it makes sense for the choices to be:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.