>Hi Sergey,
>
>Yes, well, it's a shame though.
>
>BTW, if one uses a function as a formula in a calculated field and then later for some reason has to change something (bugs maybe <g>), the thing won't recompile because of dependencies.
>
>Short of removing the formula, saving the table, editing the function and then putting the formula back in, which is kind of tedious, is there a way around this?
>
No, unfortunately not. It's a big pain but that's what we are stuck with.
BTW what exactly are you trying to do with the UDF? If you always want a money value, you can CONVERT within the function. On the other hand, as Sergey pointed out you can't make it generic like you tried.
Dan LeClair
www.cyberwombat.comSET RANT ON - The Wombat BlogLife isn’t a morality contest and purity makes a poor shield. - J. Peter MulhernDisclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.