[Gambas-user] Checkbox

Benoit Minisini gambas at ...1...
Fri Feb 27 18:48:57 CET 2004


On Friday 27 February 2004 18:33, Jack wrote:
> Bonsoir Charlie, Bonsoir Gambers,
>
>  I would like to be more understandable but my english is very poor !
>
>  I have a screen with a checkbox which return a Gambas boolean value (true
> or false )OK ? My problem is how to write this value in an MySQL field ? 
> This example: My_data = '" & my_checkbox.value & "' don't work !
>
> Thank you for your help.
>
> °~Jacky~°
>
>

Do something like that:

DIM PrimaryKey AS String
DIM MyResult AS Result

MyResult = DB.Edit("MyTable", "PrimaryKey = &1", PrimaryKey)
MyResult!MyBooleanField = MyCheckBox.Value
MyResult.Update

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list