on 05-25-2005 4:15 PM
Hi everybody,
I'm trying to access to an item (ItemCode field) in a system matrix (delivery notes lines). My code is:
oMat = oForm.Items.Item("38").Specific
strValor = oMat.Columns.Item(1).Cells.Item(pVal.Row).Specific.value
But I get an error, "Item - Invalid item", in the fisrt line (oMat = oForm.Items.Item("38").Specific)
What's wrong in my code????
Regards.
Hi,
i think the error is in the second line... you can't use "Specific.Value", so you must use an "EditText", try this:
oEdit = oMat.Columns.Item(1).Cells.Item(pVal.row).Specific
strValor = oEdit.Value
Hope it works
Regards,
Fabio Salucci
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
guys,
try:
Dim oMat As SAPbouiCOM.matrix
Dim strValor as EditText
Set oMat = frm.Items("38").Specific
Set strValor = oMat.Columns(1).Cells.Item(pVal.Row).Specific
'to access the value : strValor.String
by the way this is for SBO 6.5....i'll be doing my first SDK for SBO 2004A tomorrow. tell me if this works.
tell me if this works with you.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.