Dim a,temp As Decimal
a = 0.0
For t As Decimal = 0.0 To dg_nilai.Rows.Count - 1
temp = Replace(dg_nilai.Rows(t).Cells("nama_field").Value, ",", ".")
a += Val(temp)
Next
msgbox(a)
_____________________________________________________________________________________________
Semoga bermanfaat.
http://pangeran-it.blogspot.com/
a = 0.0
For t As Decimal = 0.0 To dg_nilai.Rows.Count - 1
temp = Replace(dg_nilai.Rows(t).Cells("nama_field").Value, ",", ".")
a += Val(temp)
Next
msgbox(a)
_____________________________________________________________________________________________
Semoga bermanfaat.
http://pangeran-it.blogspot.com/
Cara Menghitung Jumlah Total dari Field tertentu di Datagridview
Reviewed by Syawaluddin Amin, S.Kom
on
Juni 14, 2013
Rating:
Tidak ada komentar: