Hi, I am making a simple database, but I have problem with reading count of columns on QListView. When I click on ListView, the number of its columns is still zero. I do not why (mayby bug?)... Please, help me... Thank you. Here is a very little example:
DIM frmMain AS QFORM
DIM lviMain AS QLISTVIEW
SUB lviMain_OnClick
SHOWMESSAGE "Count of Columns: " + STR$(lviMain.ColumnsCount)
END SUB
WITH lviMain
.PARENT = frmMain
.Align = 5
.AddColumns "A", "B", "C"
.ViewStyle = 3
.RowSelect = 1
.GridLines = 1
.AddItems "One", "Two", "Three"
.OnClick = lviMain_OnClick
END WITH
WITH frmMain
.Center
.SHOWMODAL
END WITH
|