Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About CDOW()
Message
De
01/11/2002 12:48:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/11/2002 12:42:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00717593
Message ID:
00717914
Vues:
21
>As a side note to this, it might be best to create #defines for each of the days and the months so that conversion to another language would be easier.
>
>#include ..\..\phrases.h
>
>
>phrases.h
>
>#DEFINE PHR_MONDAY "Pazartesi"
>#DEFINE PHR_TUESDAY...
>
>
>Now all you need is a phrase list for English, Spanish, French... recompile the app and away you go. In this case, there is no need to hardcode the phrases.

I'm kind of species that doesn't like constant headers especially when I can't see how this kind of constants are less hardcoding then a list in class. I don't like cryptic constant names either, sorry. Thanks for suggestion.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform