Skip to Content
author's profile photo Former Member
Former Member

OptionButton Selected......Help Me..

Hi all!

A five optionbutton element is added to the form in Screen Painter.

Source coding the Next.

==========================================================

Dim oRadioButton As SAPbouiCOM.OptionBtn

Dim i As Long

For i = 7 To 11

Set oRadioButton = sForm.Items.Item(i).Specific

If i > 7 Then

oRadioButton.GroupWith (i - 1)

End If

oRadioButton.DataBind.SetBound True, "@ECRH", "U_STATUS"

Next i

==========================================================

Each optionbutton UniqueID : 7, 8, 9, 10, 11

It's problem UniqueID(9) Not selected.

I don't know. What's problem?

Thank you for your help

choi hyun yong

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2004 at 07:36 AM

    Hi,

    I guess the problem is that all R.B's not in the same group. The R.b. 8 is groupped with 7, R.B.9 - with 8 and etc. Make them all groupped with R.B.7. From my experience - I've seen the problems with option buttons when they were the first objects in the form. Define something before the opt. buttons.

    Regards,

    Mark

    Message was edited by: Mark Gulyansky

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.