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 a list of names for controls on a window

3 posts in Objects Last posting was on 2006-06-08 15:44:43.0Z
Alex Castillo Posted on 2006-06-06 14:28:22.0Z
From: "Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: How to get a list of names for controls on a window
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: cpe-24-221-80-131.mi.sprintbbd.net
X-Original-NNTP-Posting-Host: cpe-24-221-80-131.mi.sprintbbd.net
Message-ID: <44859106@forums-1-dub>
Date: 6 Jun 2006 07:28:22 -0700
X-Trace: forums-1-dub 1149604102 24.221.80.131 (6 Jun 2006 07:28:22 -0700)
X-Original-Trace: 6 Jun 2006 07:28:22 -0700, cpe-24-221-80-131.mi.sprintbbd.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8875
Article PK: 736076

Hello...

I need to process a certain group of controls based on user input and the
control's tag property.

I know I can do something like:

LONG llCount
LONG llStart
LONG llStop

llStart=LowerBound(Parent.Control)
llStop=UpperBound(Parent.Control)
FOR llCount=llStart TO llStop
??????????
NEXT

But I don't have idea on what to do on the "??????????" to identify tags for
each control... using Parent.Control[llCount].Tag does not works...

Can someone help me?

Thanks..!


Millard F. Brown III Posted on 2006-06-06 16:42:48.0Z
From: "Millard F. Brown III" <millard.brown@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44859106@forums-1-dub>
Subject: Re: How to get a list of names for controls on a window
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 204.86.34.1
X-Original-NNTP-Posting-Host: 204.86.34.1
Message-ID: <4485b088$2@forums-1-dub>
Date: 6 Jun 2006 09:42:48 -0700
X-Trace: forums-1-dub 1149612168 204.86.34.1 (6 Jun 2006 09:42:48 -0700)
X-Original-Trace: 6 Jun 2006 09:42:48 -0700, 204.86.34.1
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8876
Article PK: 736077

You can use TypeOf() to find out what KIND of control. But
control[llCount].tag should work - "tag" is a property of "windowobject" and
"windowobject" is the acestor type of the various window controls.

In what way is it not working?

--
Regards,
Millard [TeamSybase]

"Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com> wrote in message
news:44859106@forums-1-dub...
> Hello...
>
> I need to process a certain group of controls based on user input and the
> control's tag property.
>
> I know I can do something like:
>
> LONG llCount
> LONG llStart
> LONG llStop
>
> llStart=LowerBound(Parent.Control)
> llStop=UpperBound(Parent.Control)
> FOR llCount=llStart TO llStop
> ??????????
> NEXT
>
> But I don't have idea on what to do on the "??????????" to identify tags
for
> each control... using Parent.Control[llCount].Tag does not works...
>
> Can someone help me?
>
> Thanks..!
>
>


Chris Pollach Posted on 2006-06-08 15:44:43.0Z
From: "Chris Pollach" <cpollach@travel-net.dot.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44859106@forums-1-dub>
Subject: Re: How to get a list of names for controls on a window
Lines: 42
Organization: STD Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
X-Original-NNTP-Posting-Host: stealth.nserc.ca
Message-ID: <44884530@forums-2-dub>
X-Original-Trace: 8 Jun 2006 08:41:36 -0700, stealth.nserc.ca
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Jun 2006 08:41:37 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Jun 2006 08:44:43 -0700
X-Trace: forums-1-dub 1149781483 10.22.108.75 (8 Jun 2006 08:44:43 -0700)
X-Original-Trace: 8 Jun 2006 08:44:43 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8877
Article PK: 736078

Alex;

Suggestion: Have a look at my STD Foundation Classes on CodeXchange for
PowerBuilder. It has routines that walk all children (and watch-out, you can
have multiple depths of parent-child relationships) and from the child
components seek their highest level parent. Both code segments use object
type "casting" to resolve whether the .Tag property is viable.

HTH
Regards ... Chris

"Alex Castillo" <klmAlexCast_SlwMx@HotMail.Com> wrote in message
news:44859106@forums-1-dub...
> Hello...
>
> I need to process a certain group of controls based on user input and the
> control's tag property.
>
> I know I can do something like:
>
> LONG llCount
> LONG llStart
> LONG llStop
>
> llStart=LowerBound(Parent.Control)
> llStop=UpperBound(Parent.Control)
> FOR llCount=llStart TO llStop
> ??????????
> NEXT
>
> But I don't have idea on what to do on the "??????????" to identify tags
for
> each control... using Parent.Control[llCount].Tag does not works...
>
> Can someone help me?
>
> Thanks..!
>
>