Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making CTOD() work in Europe
Message
From
17/11/2018 07:29:48
 
 
To
17/11/2018 06:31:52
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01663465
Message ID:
01663488
Views:
50
>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. :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform