Jack, No problem. [Smile]

Mark,
quote:
(I.e. I would expect Exp(x,y) to return a number, not an array of strings)
That does not have to be the case. Try this code:
{edit} By no means is this suppose to be a valid EXP function.
code:
function EXP($x,$y)
dim $x, $y, $z
? "X = " + $x + " of type " + vartypename($x)
? "Y = " + $y + " of type " + vartypename($y)
$z = $x
for $i=2 to $y
$z = $z * $x
next
$err = @Error
$errtext = @Serror
? "Z = " + $z + " of type " + vartypename($z)
$EXP = $z, $err, $errtext
endfunction
$result = EXP(2,3)
? ? "Results:"
for $i=0 to Ubound($result)
? "element $i = '" + $result[$i] + "' is type " + vartypename($result[$i])
next



[ 17 April 2002, 01:04: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/