Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Jahren, 5 Monaten
Letzter Beitrag:
vor 3 Jahren, 5 Monaten
Beteiligte Autoren:
Vijay Patel, Arie, Allard, Al, Paulo Oliveira

Radio Button in option cheched by programing

Startbeitrag von Vijay Patel am 06.01.2015 13:28

i am set radio button in program
that radio buttion in set 6 option.
but option cheched by programing
does not work this code:

help me


what about Radio_Button=5

von Paulo Oliveira - am 06.01.2015 13:55
is radio button,
and 5 is a radio buttion in option 1,option 2,option 3,option 4,option "5"

but i select only radio button option 5 by windev code use

von Vijay Patel - am 06.01.2015 17:44
Hello Vijay


Windev functions do not always apply to every control and the manual explains their context.

..Selected does not apply to radio box controls and the help text explains this.

A radio button is an indexed control that returns a numeric value for the option chosen so in your case it will return a number between 1 and 6 as the value when a user chooses one of the options

If you want to set it up to display the fifth optoin as "selected" then do as Paulo suggested and put that code in the control init.

This is all explained in the WD Highlight example which is referred to in the help text of the radio control.

Please do not abuse the goodwill of this forum by asking for help without first trying to help yourself. If your English language skills are not up to understanding the manaul, get help locally to interpret it.


von Al - am 06.01.2015 22:23
Hi I agree 100% with a Al


Between tthe lines Al did explain how it works.

1 add values to the control options ( 7 tab discription window)

firstoption = 1
second option = 2

Radio_Button[5] = 5 might just do the trick

von Allard - am 07.01.2015 10:24
Hi Vijay
Maybe the radio-control is set again AFTER your code.
For example by a HFileToScreen in your code.
I would step through the code with de debugger.
Or if it is only on a device add some tracing or infoboxes to show the value of the radiobutton after you set it.

von Arie - am 07.01.2015 10:50
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.