Ich mach´s immer so:
|
Quellcode
|
1
2
|
AND
ROC(datepart(d), 1, $) = 0
|
bzw. habe mir das Ding als Indi mit dem Namen Tageswechsel angelegt.
der Indi lautet dann
|
Quellcode
|
1
|
ROC(datepart(d), 1, $) >0
|
und im Code frage ich ab
|
Quellcode
|
1
|
and not(tageswechsel())
|
Das Ergebnis ist immer gleich nur die "Eleganz"
im Code ein wenig eine andere.
If you think it´s expensive to hire a professional, wait until you hire an amateur.