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.

DW buttons

3 posts in Objects Last posting was on 2002-09-11 14:47:46.0Z
F_Agostinho Posted on 2002-09-11 14:44:13.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: F_Agostinho
Date: Wed, 11 Sep 2002 10:44:13 -0400
Subject: DW buttons
Lines: 7
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_513BE61AE2895F1B0050F3FD85256C31.0050F40C85256C31@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:940
Article PK: 713508

I think this is an easyone to all you experts. (I'm a newby in PB...)

The question is : I've a DW with 2 buttons. How can I refer to each one of
them in the DW buttonclicked event?

Thanks,
FA


Philip_Salgannik Posted on 2002-09-11 14:47:46.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Wed, 11 Sep 2002 10:47:46 -0400
Subject: Re: DW buttons
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_1810B41748D720180051474785256C31.0050F41385256C31@webforums>
References: <364_513BE61AE2895F1B0050F3FD85256C31.0050F40C85256C31@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:938
Article PK: 713499

dwo.name


Real Gagnon Posted on 2002-09-11 14:45:46.0Z
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: DW buttons
From: Real Gagnon <real.gagnon@ssq.ca>
User-Agent: Xnews/4.06.22
Date: Wed, 11 Sep 2002 10:45:46 -0400
Lines: 13
NNTP-Posting-Host: 66.38.211.199
Message-ID: <364_Xns92866B298925Frealrgagnon@199.93.177.77>
References: <364_513BE61AE2895F1B0050F3FD85256C31.0050F40C85256C31@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:937
Article PK: 713503


> The question is : I've a DW with 2 buttons. How can I refer to each one
> of them in the DW buttonclicked event?

[ButtonClicked event]
string button_name
button_name = dwo.name
CHOOSE CASE button_name
CASE "cb_ok"
MessageBox("Testing", "cb_ok is clicked")
CASE "cb_cancel"
MessageBox("Testing", "cb_cancel is clicked")
END CHOOSE

BYe.
--
| Real Gagnon from Quebec, Canada
+ LookingForJavaOrPowerBuilderSnippets? VisitReal'sHow-to
| http://www.rgagnon.com/howto.html