` Determining fields in current sort order (Dennis Evans ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

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

Par2: Determining fields in current sort order
2000-05-11 -- Dennis Evans
 
The following will return the fields for the key of the current sort order. The GetComponets method returns the number of fields and the GetFieldName returns a string with the field name. loop x = 1 to Self.Primary.Me.GetComponents(Self.Order.MainKey) LocVar = Self.Primary.Me.GetFieldName(Self.Order.MainKey, x) ! get the name do what ever with the LocVar end ! loop The Order property is a protected property from the ViewManager, you will need to use an embed from the BrowseClass. Or, if you are doing this from some type of control or are reacting to an event etc... then drive the browse class and add a method, place the code in the derived method and you will be able to access the protected properties.


Today is April 26, 2024, 11:37 am
This article has been viewed 35107 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: