` Printed Icetips Article

Icetips Article



ABC: Disable button if no records in browse
1998-07-12 -- Jeff Slarve
 
Newsgroups: comp.lang.clarion

>I placed a button on a browse form and what to disable it when there are
>no records in the browse. What code will do this and what event should I
>place this in? I'm using C4 with ABC templates.


In the browse.UpdateWindow() method, priority(last):

 ?YourButton{PROP:Disable}=Choose(Self.Records()<>0,0,1)



Printed May 6, 2024, 6:24 am
This article has been viewed/printed 35115 times.
Google search has resulted in 21 hits on this article since January 25, 2004.