cancel
Showing results for 
Search instead for 
Did you mean: 

Getting value from find textbox in packaging window.

Former Member
0 Kudos

hi am trying to get value in find text box on pressing enter key.But i get value as 248 instead of value in enter..I tried two methods but both yielded the same result.Please help.This is the code i tried

oItem = oForm.Items.Item("8"); //8 is the value of text box

string val= oForm.Items.Item("8").Specific.Value;

SAPbouiCOM.EditText edComments;

  edComments = (SAPbouiCOM.EditText)oForm.Items.Item("8").Specific;

string strVal = edComments.Value;

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

string val= oForm.Items.Item("8").Specific.Value;

Try to remove .Value

string val= oForm.Items.Item("8").Specific;

Or

Dim oStr as SAPbouiCOM.EditText = oForm.Items.Item("8").Specific

MsgBox(oStr)

Former Member
0 Kudos

returns the same...

string val= oForm.Items.Item("8").Specific.Value; causes exception

Former Member
0 Kudos

Dim oStr As SAPbouiCOM.EditText = frmDelivery.Items.Item("14").Specific

MsgBox(oStr.Value.ToString)

Try this, this is working fine to me.

Answers (0)