` Printed Icetips Article

Icetips Article



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.



Printed November 21, 2024, 6:38 am
This article has been viewed/printed 35197 times.