Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb2.pngCHECKBOX - enable/disable

CHECK / UNCHECK  CHECKBOX


To check a checkbox you have 2 solutions :

  Use IF THEN ELSE loop in the click event as this :

PUBLIC SUB checkbox1_click()
IF checkbox1.value = FALSE THEN
checkbox1.value = TRUE
ELSE
checkbox1.value = FALSE
ENDif
END



Here you find the second solution :

PUBLIC SUB checkbox1_click()
select case checkbox1.value
case FALSE
checkbox1.value = TRUE
case TRUE
checkbox1.value = FALSE
END select
END

Both of these solution have the same result !
Have a good coding ! wink

Creation date : 20/11/2009 @ 23:23
Last update : 12/02/2012 @ 11:24
Category : CHECKBOX
Page read 6633 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^