Skip to Content
0
Former Member
Dec 20, 2011 at 09:39 AM

EditText Help

25 Views

Hello,

I have a edittext in my form that I created in Screen painter.

The EditText name as EditText1.

Before I click the Test Button, I input value in edittext.

But the problem is the edittext can't capture the value the I input after I click the Test Button.

It always NULL. 😔

Please check my simple code.

If pVal.FormType = 2000060006 And pVal.Before_Action = False Then
                Select Case pVal.Action_Success
                    Case False

                    Case True
                        Select Case pVal.ItemUID
                            Case "Test"
                                Select Case pVal.EventType
                                    Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
                                        Dim oEditText As SAPbouiCOM.EditText
                                        oEditText = oForm.Items.Item("EditText1").Specific

                                        If oEditText.String = "" Then
                                            SBO_Application.MessageBox("NULL")
                                        Else
                                            SBO_Application.MessageBox("NOT NULL")
                                        End If
                                End Select
                        End Select
                End Select
            End If