Here's brute force method:
SET VAR vone INTEGER = 100
SET VAR vtwo INTEGER = 200
SET VAR vthree INTEGER = 300
SET VAR vcheck INTEGER = .vone
IF vcheck < vthree THEN
SET VAR vcheck = .vthree
ENDIF
IF vcheck < vtwo THEN
SET VAR vcheck = .vtwo
ENDIF
SET VAR vmsg = ('Highest Var Value =' & (CTXT(.vcheck)))
PAUSE 2 USING .vmsg
RETURN
I suppose you can get there with a protracted embeded IFGT function, but
this one is easier on the eyes and self documenting....
----- Original Message -----
From: "jan johansen" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, February 26, 2013 1:10 PM
Subject: [RBASE-L] - Comparing 3 variables
: Brain cramp.
:
: I need to find the MAX of 3 variables and struggling on the syntax.
:
: Jan
:
: