[Gambas-user] Problem with boolean values in a class file

Benoit Minisini gambas at ...1...
Mon Feb 4 16:40:25 CET 2008


On lundi 4 février 2008, Leonardo Miliani wrote:
> I think that the TRUE and FALSE constants in Gambas aren't "true"
> boolean values.
> Try to convert them in real bool values with *CBool* before to store
>
> them in your DB, i.e.:
> > currentAddress preferred_address = *CBool*(chkpreferredAddress.value)
> > currentAddress postal_address = *CBool*(chkPostalAddress.value)
> > currentAddress .HeadOffice = FALSE  (which I want to be false here)

TRUE and FALSE are "true" boolean values, what else could they be? But the 
CheckBox.Value property is an integer, not a boolean.

Regards,

-- 
Benoit Minisini




More information about the User mailing list