PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → windev 21 checkbox question
windev 21 checkbox question
Started by Allard, Aug., 16 2017 2:23 PM - 2 replies
Posted on August, 16 2017 - 2:23 PM
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
Posted on August, 16 2017 - 2:56 PM
CurrentSubscript()
Posted on August, 17 2017 - 12:04 AM
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