` 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 November 24, 2024, 11:04 pm
This article has been viewed/printed 35392 times.
Google search has resulted in 21 hits on this article since January 25, 2004.