Re: [Gambas-user] Toggle Button values

2010-05-05 Thread Fabien Bodard
ok, in gambas and others language True and false are not true value but two choiced value togglebutton.value = true set the toogle pressed if togglebutton.value then print "pressed" try this too :) print cint(true) print cint(false) 2010/5/5 Rolf-Werner Eilert : > Hi all, > > In Gambas 2 I u

[Gambas-user] Toggle Button values

2010-05-05 Thread Rolf-Werner Eilert
Hi all, In Gambas 2 I used some ToggleButtons and found it difficult to make out what are the correct values to be set/returned. It turned out that only 0 for "not pressed" is reliable. I can set TRUE and FALSE to switch it on/off from code, but it will not return these but 1/0. I cannot set 1