cancel
Showing results for 
Search instead for 
Did you mean: 

Can't check an option button with code.

Former Member
0 Kudos

When opening my own form, I can't check an option button with code. The SDK doesn't complain; it just doesn't do it. This used to work in the past.

Using 2007 PL42. Any ideas?

Thanks,

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

edy_simon
Active Contributor
0 Kudos

Hi Mike,

Currently, how do you check the check box ? is the check box in a matrix ?

You can set the check box value using either DI or UI, can you try both and see if it is working ?

Regards

Edy

Former Member
0 Kudos

Edy,

My code is:

oForm.Items.Item("optOpertn").Specific.Selected = True

According to the SDK help file, this should work.

Thanks,

Mike

edy_simon
Active Contributor
0 Kudos

Hi Mike,

Try :


                        Dim ocell As SAPbouiCOM.CheckBox
                        ocell = oForm.Items.Item("optOpertn").Specific
                        ocell.Checked = True

Hope it works.

Regards

Edy