Get value from a check box

Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Calc: threaded

Evening everyone, I’m looking for a way to get the value (boolean) of a checkbox and pass it to a table, just like the following code does to a text box, but instead I need it to checkbox

DailyBox = subform.getByName("Daily")
DailyBoxText = DiariaBox.Text
DailyBox.BoundField.updateString(DailyBoxText)

I would need some function that gets the value of the checkbox and then update the table, something that looks like this:

CheckBox = subform.getByName("Check")
CheckBoxValue = CheckBox.Value
CheckBox.BoundField.updateValue(CheckBoxValue)

And then the value would be changed to True or False on the table.
**I tried using .Value to get the boolean, but it didnt work.

Bind the checkbox event you are interested in to macro MriLib>Module1.mri

You have to use .State for a checkbox. State = ‘1’ → Box is checked.
And for update it might be .updateBoolean(b). It depends on the field, which is bound from the database to the checkbox. I would try .updateBoolean(True).

All this could be found in Base Guide, but also with tools like mri (see @Villeroy ) or xray.