Page 1 of 1

Different routine results

Posted: Fri Mar 24, 2006 3:54 pm
by Juls
Hi,

I wrote a routine that takes 3 arguments and outputs a number. When I "Test" the routine with a set of values then it returns the correct value. When I put the same routine in my transformer and pass the same arguments it returns the wrong value.

I am lost.. I checked and rechesked the values that are passed and they are the same in both cases.

Any ideas?

Thanks

Posted: Fri Mar 24, 2006 3:57 pm
by DSguru2B
Make sure you dont have any leading or trailing spaces in the arguments you are passing to your routine. Try trimming your input arguments, either while feeding them into the routine, or inside your routine. That might be the reason.

Posted: Fri Mar 24, 2006 4:15 pm
by Juls
SO SIMPLE!!!!!! trim worked!!!!

But I could swear that there weren't any spaces!!!!

I guess you can never be too sure until you TRIM.

Thanks!!!