on 2007 May 15 7:11 PM
Hi,
They see the code below:
IU = oMatrix.Columns.Item("DSCardCode").Cells.Count - 1;
for (I = 1; I <= IU; I++ )
{
object val = oMatrix.Columns.Item("DSCardCode").Cells.Item(I).Specific;
oEditText1 = (SAPbouiCOM.EditText)val;
string valor = oEditText1.String;
}
this way I read all rows in only one column and obtained the values of each line of this column,
however I want to make is read the values of all columns in only one row and obtained content cells this row, somebody knows how to make......
thanks.
Request clarification before answering.
HI
You could use the GetNextSelectedRow to obtain the row and then obtain the values for that row, something like this (VB Code)
Dim intRow As Int16 = oMatrix.GetNextSelectedRow(0, SAPbouiCOM.BoOrderType.ot_RowOrder)
Dim oColumn As SAPbouiCOM.Column
For Each oColumn In oMatrix.Columns
Select Case oColumn.UniqueID
Case "Col1"
strValue = Val(oColumn.Cells.Item(intRow).Specific.Value)
Case "Col2"
strValue = CInt(Val(oColumn.Cells.Item(intRow).Specific.Value))
End Select
Next
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
39 | |
8 | |
5 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.