>>... for cField>val(replicate('9',fsize('cField'))) >>>>bye
>PROCEDURE maxval >LPARAMETERS size, dec >LOCAL cNum >cNum = REPLICATE('9', dec) >cNum = "." + m.cNum >cNum = REPLICATE('9', m.Size - (m.dec + 1)) + m.cNum >RETURN VAL(m.cNum) >Since size and dec must be passed as arguments to the function, this is hardly a general approach. In fact, knowing that information, it would be simpler to hardcode the value in the scope expression (like Caroline suggested).