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;

u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026

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="http://imageshack.us">[IMG]http://img89.imageshack.us/img89/8448/item33xx4.png[/IMG]</a>

<a href="http://g.imageshack.us/img89/item33xx4.png/1/">[IMG]http://img89.imageshack.us/img89/item33xx4.png/1/w547.png[/IMG]</a>

Former Member
replied

Hi,

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

Dim strVal as String

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

regards:

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