` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Detecting last record in a browse
1999-05-08 -- Jim Kane
 
>> Does anyone know of an elegant way to detect when the last record of a >> browse is selected? If you are not adding/editing/deleting you could retrieve the last record and save the primary key fields for a quick test. Else: If Records(BRW1.ListControl)>Choice(Brw1.ListControl) then !not last else get(Brw1.ListControl,Records(BRW1.ListControl)) Reset(Brw1.View, Brw1.ViewPosition) If BRW1.Next()<>Level:benign !retrieve the last record in the list box !unexpected error end case BRW1.Next() !get the record after the last one in the list box Of Level:Notify !You were on the last one Of Level:Fatal !unexpected error Of Level:Benign !not on the last one end end


Today is May 4, 2024, 8:01 pm
This article has been viewed 35115 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: