Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About CDOW()
Message
From
01/11/2002 12:48:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/11/2002 12:42:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00717593
Message ID:
00717914
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform