Cara Menjumpahkan Kolom di Datagrid VB6


Private Sub cmdJumlah_Click()
Dim intCount As Integer
Dim dbTot As Double

dbTot = 0
DataGrid1.Col = 12

For intCount = 0 To DataGrid1.ApproxCount – 1

dbTot = dbTot + DataGrid1.Columns(12).CellValue(DataGrid1.GetBookmark(intCount ))

Next
Text1.Text = tot

End Sub

~ oleh desktopku pada Juni 19, 2012.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: