Domino 9 und frühere Versionen > ND8: Entwicklung

Sortierung nach Datum - Teilstring in Mehrfachfeld

<< < (2/3) > >>

eknori:
list :=
"004711~01.03.2011~Urlaub":
"004711~02.03.2011~Urlaub":
"004711~10.04.2011~Krank":
"004711~11.04.2011~Krank":
"004711~20.03.2011~Freizeit":
"004711~21.03.2011~Freizeit";
list := @Sort(list; [CustomSort];
@ToTime(@Word($A;"~";2))
=> @ToTime(@Word($B; "~";2)));

@Prompt([Ok]; ""; @Implode(list; @Char(10)))

marschul:
@Ulrich: Wow - das habe ich gleich mal ausprobiert und es klappt sogar (absteigend sortiert) ;)

Das mit $A & $B kannte ich noch nicht und ehrlich geschrieben: ich kapiers auch nicht und in der Hilfe hab ich nix dazu gefunden  ??? Wo gibt's denn Infos dazu?


EDIT: Frage zurückgezogen, hab's in der Hilfe zu @Sort gefunden  :D

cebolina:
@eknori
Danke. Jetzt kann ich die Formel auch nachvollziehen.

Stefan

Tode:
Auszug aus den Examples zum Befehl @Sort aus der Designerhilfe...

@Sort(pswd1:pswd2:pswd3;[CUSTOMSORT];@If(@PasswordQuality($A) < @PasswordQuality($B);@True;@PasswordQuality($A) > @PasswordQuality($B);@False;@False))

Auszug aus der Hilfe zu @Sort:

customSortExpression
Formula. Required when the [CUSTOMSORT] keyword is specified. A formula that uses the temporary variables $A and $B to compare the values of elements in the list two at a time. Return @True or a number greater than 0 to specify that $A is greater than $B. Return @False or a number less than or equal to 0 to specify that $B is greater than $A.
An error is produced if the return value is a data type other than a number.

cebolina:
@Tode
Die Hilfe zu @Sort habe ich sehr wohl gelesen - aber halt nicht verstanden ;-)

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln