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.

Problem in SEND function when used in Treeview

2 posts in Objects Last posting was on 2005-06-28 15:32:49.0Z
ANAND Posted on 2005-06-28 11:02:54.0Z
Sender: 7890.42c12d30.1804289383@sybase.com
From: Anand
Newsgroups: sybase.public.powerbuilder.objects
Subject: Problem in SEND function when used in Treeview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42c12e58.79b8.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 28 Jun 2005 04:02:48 -0700, 10.22.241.42
Lines: 20
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jun 2005 04:02:51 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jun 2005 04:02:54 -0700
X-Trace: forums-1-dub 1119956574 10.22.108.75 (28 Jun 2005 04:02:54 -0700)
X-Original-Trace: 28 Jun 2005 04:02:54 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8490
Article PK: 735712

Hi all
I am using PB 6.5 in XP.Using the following statement I
get
the number of items in a Treeview.
il_item = Send(handle(this), 4357, 0, 0)
Consider that the Treeview has got 20 items on entry.The
above
statement returns 20.Now if i expand a level which has got 3
children the above statement returns 23 which is correct.IF
I
collpase the expanded level which had 3 children then the
above statement still returns 23.But it should return 20.

Is there anyway to reset ie the statement should return only
the
visible items.When collapsing , the SEND function does not
work.Please help me with a solution

Regards
Anand


Philip Salgannik Posted on 2005-06-28 15:32:49.0Z
Sender: 7202.42c06bad.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Problem in SEND function when used in Treeview
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <42c16d9d.7d4f.1681692777@sybase.com>
References: <42c12e58.79b8.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 28 Jun 2005 08:32:45 -0700, 10.22.241.42
Lines: 26
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 28 Jun 2005 08:32:46 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 28 Jun 2005 08:32:49 -0700
X-Trace: forums-1-dub 1119972769 10.22.108.75 (28 Jun 2005 08:32:49 -0700)
X-Original-Trace: 28 Jun 2005 08:32:49 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8491
Article PK: 735714

Basically you can NOT rely on any of the constants for SEND
function in PB6.5, that version stil uses Powersoft's
proprietary implementation of the treeview. Only starting
with version 7 PB is using a straight wrapper for
Microsoft's common control...

> Hi all
> I am using PB 6.5 in XP.Using the following statement I
> get
> the number of items in a Treeview.
> il_item = Send(handle(this), 4357, 0, 0)
> Consider that the Treeview has got 20 items on entry.The
> above
> statement returns 20.Now if i expand a level which has got
> 3 children the above statement returns 23 which is
> correct.IF I
> collpase the expanded level which had 3 children then the
> above statement still returns 23.But it should return 20.
>
> Is there anyway to reset ie the statement should return
> only the
> visible items.When collapsing , the SEND function does not
> work.Please help me with a solution
>
> Regards
> Anand