PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → windev 21 checkbox question
windev 21 checkbox question
Débuté par Allard, 16 aoû. 2017 14:23 - 2 réponses
Posté le 16 août 2017 - 14:23
Does anyone know how to find out witch checkbox is checked if in a control are several check boxes.

Is there some kind of property ?



thanks

Regards
Allard
Posté le 16 août 2017 - 14:56
CurrentSubscript()
Posté le 17 août 2017 - 00:04
Good afternoon you could do it like this. For example if you have a checkbox control with 3 options you could do this

FOR i = 1 _TO_ 3
SWITCH i
CASE 1
//If the first option is checked then
IF CBOX_NoName[ i ] = TRUE THEN

END
CASE 2
//If the second option is checked then
IF CBOX_NoName[ i ] = TRUE THEN

END
CASE 3
//If the third option is checked then
IF CBOX_NoName[ i ] = TRUE THEN

END
END
END

Hope this helps