>Good point, and now for the lazy ones
>
>Create the function my_ctod as above
>
>Now use your global include file and add
>
>#DEFINE CTOD my_ctod
>
>
>Precompiler replaces CTOD with my_ctod. Done. No replace anywhere else.
Hi Lutz.
Your solution might work, but my argument it would be confusing to a future maintenance developer who sees input to what seems like CTOD() using parameters inconsistent with the expectations of a British date.
I would choose to manually replace each instance (or programmatically do so in this case) to keep it clear.
It's almost Thanksgiving here in the U.S. ... time for some good STUFFing. :-)
ALINES()
Iteration
STUFFIng
Replacement.
AISR ... aye, sir. :-)