codesamples:sorting_collection_delegate
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| codesamples:sorting_collection_delegate [2021/10/20 09:53] – created wolfgangriedmann | codesamples:sorting_collection_delegate [2026/03/18 12:58] (current) – wolfgangriedmann | ||
|---|---|---|---|
| Line 15: | Line 15: | ||
| oPersons: | oPersons: | ||
| - | delegate( o1 a Person, o2 as Person ) { | + | delegate( o1 as Person, o2 as Person ) { |
| local nResult as int | local nResult as int | ||
| nResult := o1: | nResult := o1: | ||
| Line 21: | Line 21: | ||
| } ; | } ; | ||
| )</ | )</ | ||
| + | | ||
| + | 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: | ||
| + | |||
| + | < | ||
| + | LOCAL nResult AS INT | ||
| + | nResult := o1: | ||
| + | RETURN nResult | ||
| + | })</ | ||
codesamples/sorting_collection_delegate.1634723607.txt.gz · Last modified: 2021/10/20 09:53 by wolfgangriedmann