Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

getValue of item

I want to get value of item 33 for I use it on sql command.I used command

Where EmpID=2 then value=2;

EmpID=3 then value=3;


Dim oEdit As SAPbobsCOM.Field

oEdit = OForm.Items.Item("33").Specific.ToString()

pVal = oEdit.Value

However,It not get value of item 33.As I run program ,it error and display message (System._Common)

Can you help me resolve this problem.?

Thank you !

<a href="">[IMG][/IMG]</a>

<a href="">[IMG][/IMG]</a>

Former Member


Try this code... It should work for you..

Dim strVal as String

strVal = OForm.Items.Item("33").Specific.Value


Edited by: | Sandeep Saini | Roorkee | India on Oct 15, 2008 3:27 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question