Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making CTOD() work in Europe
Message
De
17/11/2018 07:29:48
 
 
À
17/11/2018 06:31:52
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01663465
Message ID:
01663488
Vues:
51
>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. :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform