User Tools

Site Tools


codesamples:sorting_collection_delegate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
codesamples:sorting_collection_delegate [2026/03/18 10:52] wolfgangriedmanncodesamples:sorting_collection_delegate [2026/03/18 12:58] (current) wolfgangriedmann
Line 22: Line 22:
   )</code>   )</code>
      
-  P.S. this code currently compiles only in Core dialect, not in VO dialect+Attention: this code currently compiles only in Core dialect, not in VO dialect
 +But there is a shorter form that compiles also in VO dialect: 
 + 
 +<code>oPersons:Sort( {o1 AS Person, o2 AS Person =>  
 + LOCAL nResult AS INT 
 + nResult := o1:Name:CompareTo(o2:Name) 
 + RETURN nResult 
 + })</code>
codesamples/sorting_collection_delegate.txt · Last modified: 2026/03/18 12:58 by wolfgangriedmann