Skip to Content
0
Former Member
Dec 27, 2007 at 11:08 AM

Checkbox won't stay checked

64 Views

Hi,

I added a checkbox to a form with the code below:

oItem = oForm.Items.Add("cbGroup", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)

oItem.Top = 355

oItem.Left = 25

Dim loCheckBox As SAPbouiCOM.CheckBox

loCheckBox = oItem.Specific

loCheckBox.Checked = True

loCheckBox.Caption = "Group"

The checkbox appears fine on my form, I even can execute code when the click event is triggert.

The problem is dat the checkbox never stays check when I want to, it always stays false.

Anyone has a solution?

regards,

Bas Dekker