Einzelnen Beitrag anzeigen
Alt 26.05.2007, 11:35   #4
waldbauer.com
Entwickler
Beschreibung vorhanden OSA MAXOF2

E r g e b n i s / R e s u l t

Liefert den Größten von zwei Werten, die zugeteilt wurden
Return the largest of two values passed to it

B e s c h r e i b u n g / D e s c r i p t i o n

MAXOF2 calculates the largest of two values passed to it and returns
the larger.
Integers, decimals and dates may be passed to the routine.

S y n t a x
Code:
larger = call('MAXOF2' , value1 , value2)
P a r a m e t e r

value1
value2 - may be integer, decimal or date values. If dates are involved,
then both values must be dates.

R e t u r n s
The larger of the two values passed to the function.
If dates are passed to the function, then a date is returned.
If two integers are used, then an integer is returned.
If either of the two values is a decimal, then a decimal is returned.

B e i s p i e l / E x a m p l e

Code:
 
attach 'TOOLS' 
put call('MAXOF2' , sysdate , sysdate - 1) ! prints today's date 
detach 'TOOLS'
Q u e r v e r w e i s / R e f e r e n c e

MINOF2
Angehängte Dateien
Dateityp: oac TOOLS.OAC‎ (18.5 KB, 4x aufgerufen)
waldbauer.com ist offline   Mit Zitat antworten