on 10-09-2008 4:10 PM
Hello,
I want to get the street value (address) in Business Partner, that is just entered by a user (but not yet saved), because I have to do some comparison before it's saved.
Here is the system info for street in Business Partner:
Item: 178
Columm: 2
Row: 1
And, here is my code (VB):
Dim mtx As SAPbouiCOM.Matrix = SBOapp.Forms.Item(pVal.FormUID).Items.Item("178").Specific
Dim street As String = mtx.Columns.Item("2").Cells.Item("1").Specific.ToString
As the program executes the second line (street As String...), the following error comes up:
System.Runtime.InteropServices.COMException
On part Cells.Item(), I have tried with 0 and pVal.Row, both don't work.
Does anyone have a clue? Really appreciate for any hints! Thanks!
Hi,
try this:
Dim mtx As SAPbouiCOM.Matrix = (SAPbouiCOM.Matrix)SBOapp.Forms.Item(pVal.FormUID).Items.Item("178").Specific
Dim street As String = ((SAPbouiCOM.EditText)mtx.Columns.Item("2").Cells.Item(1).Specific).ToString
Att,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
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.