on 07-28-2011 7:33 AM
hi
dim n as integer=10
dim tot as integer
omatrix = oForm.Items.Item("mtrx").Specific
For i = 1 To omatrix.RowCount
If Len(omatrix.Columns.Item("lcode").Cells.Item(i).Specific.value()) > 0 Then
valu = Integer.Parse(omatrix.Columns.Item("numdays").Cells.Item(i).Specific.value()) 'select empno from matrix rows
End If
Next
tot=valu-n
my question is
hw to add calculated tot value to column of the matrix
Hi,
Try this code
dim n as integer=10
dim tot as integer
omatrix = oForm.Items.Item("mtrx").Specific
For i = 1 To omatrix.RowCount
If Len(omatrix.Columns.Item("lcode").Cells.Item(i).Specific.value()) > 0 Then
valu = Integer.Parse(omatrix.Columns.Item("numdays").Cells.Item(i).Specific.value()) 'select empno from matrix rows
tot+=valu
End If
Next
tot=valu-n
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is my code plz help me
Dim qrystr As String
Dim val As Integer 'declaration
Dim tt As Integer
Dim m As String
Dim i As Integer
Dim valu As Integer
omatrix = oForm.Items.Item("mtrx").Specific
For i = 1 To omatrix.RowCount
If Len(omatrix.Columns.Item("lcode").Cells.Item(i).Specific.value()) > 0 Then
valu = Integer.Parse(omatrix.Columns.Item("numdays").Cells.Item(i).Specific.value()) 'reading val from table
End If
Next
recset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
qrystr = "SELECT count(T0.[U_numdays]), T0.[U_empno] FROM [dbo].[@PLAFR1] T0 where T0.[U_empno]='5' group by T0.[U_empno]"
recset.DoQuery(qrystr)
val = recset.Fields.Item(0).Value
tt = valu - val
Dim oedit1 As SAPbouiCOM.EditText
omatrix2 = oForm.Items.Item("mtrx").Specific
For i = 1 To omatrix2.RowCount
If Len(omatrix2.Columns.Item("lcode").Cells.Item(i).Specific.value()) > 0 Then
oedit1 = omatrix2.Columns.Item("bal").Cells.Item(i).Specific
tt = oedit1.Value
End If
Next
Edited by: hareeshKR on Jul 28, 2011 9:35 AM
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.