Gerry,
Something is way whacked out here! As I'm sure you know by now. *g*
>If I do ?transform(150) from the command window I get 15. ?transform(1000) = 1
What happens if you try this:
lcX = transform(150)
and look at the memvar in the debugger is it '15' or '150'?
I just tested this an you can not create a udf named transform() that will override the builtin function. But it might be possible that you've got a #DEFINE laying around that is interfering here.
>There is a format code, @Z, that: "If 0, currency or numeric values are converted to spaces." If I do ?transform(150,'@Z') from the command window I get 150. I shouldn't have to do this though.