cancel
Showing results for 
Search instead for 
Did you mean: 

how to assign value in matrix column

Former Member
0 Kudos

hi,

i am got a value, A. I want to assign back to column A in the matrix. How's the syntax look like ?

My Code :

Dim ans as Integer

aCol = oMatrix.Columns.Item("A")

How to assign back the ans value into aCol ?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Elson,

Try This....


 Dim ans As Integer
            Dim omatrix1 As SAPbouiCOM.Matrix
            omatrix1 = oform.Items.Item("mat_emp").Specific
            ans = 5
            omatrix1.Columns.Item("col_mar").Cells.Item(1).Specific.value = ans

Thanks

Shafi

Former Member
0 Kudos

Hi

Try using this code

Dim oCol As EditText = oMatrix.GetCellSpecific("A", pVal.Row)

oCol.Value = ans

Regards

Vivek

Edited by: viveksr on Sep 2, 2011 10:46 AM

Edited by: viveksr on Sep 2, 2011 11:26 AM