Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

How to get the number of items in a Treeview

2 posts in Objects Last posting was on 2005-06-10 15:59:08.0Z
ANAND Posted on 2005-06-10 08:15:35.0Z
Sender: 5579.42a94b1c.1804289383@sybase.com
From: Anand
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to get the number of items in a Treeview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42a94c23.5583.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 10 Jun 2005 01:15:31 -0700, 10.22.241.42
Lines: 9
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Jun 2005 01:15:32 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Jun 2005 01:15:35 -0700
X-Trace: forums-1-dub 1118391335 10.22.108.75 (10 Jun 2005 01:15:35 -0700)
X-Original-Trace: 10 Jun 2005 01:15:35 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8444
Article PK: 735668

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


Philip Salgannik Posted on 2005-06-10 15:59:08.0Z
Sender: 380c.42a9af39.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: How to get the number of items in a Treeview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42a9b8cc.3872.1681692777@sybase.com>
References: <42a94c23.5583.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 10 Jun 2005 08:59:08 -0700
X-Trace: forums-1-dub 1118419148 10.22.241.41 (10 Jun 2005 08:59:08 -0700)
X-Original-Trace: 10 Jun 2005 08:59:08 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8447
Article PK: 735671

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 )

> 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