Sort Data MSFlexGrid in VB6

download (2)MSFlexGrid is an object in vb6 to show data that we set. Data that show actually can sort if we click the every column in the MSFlexGrid Object. MSFlextGrid have an function for sort the data according the column that we click. it can ascending or descending. the function is flexSortStringAscending, flexSortGenericAscending, flexSortNumericAscending and flexSortStringDescending, flexSortGenericDescending, flexSortNumericDescending.

how to use:

example :

MSFlexGrid.sort = flexSortNumericDescending (for descending)

MSFlexGrid.sort = flexSortGenericAscending (for ascending)

Iklan

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