Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get the number of items in a Treeview

35 views
Skip to first unread message

Anand

unread,
Jun 10, 2005, 4:15:35 AM6/10/05
to
Hi all
Is there any service in PFC which will give the number of
items
available in a Treeview without parsing the Treeview with
FinItem
function.I am using PB 6.5.Pls help

Thanks
anand

philipsalgannik

unread,
Jun 10, 2005, 11:59:08 AM6/10/05
to
Noting in PFC since it is not needed for that.
It is strange that Sybase missed this, it is easy:
CONSTANT integer TV_FIRST = 4352
CONSTANT integer TVM_GETCOUNT = TV_FIRST + 5
long ll_tvitemcount
ll_tvitemcount = Send ( handle(yourtreeview), TVM_GETCOUNT,
0, 0 )
0 new messages