Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Something like .h files in VFP
Message
 
To
05/08/2004 09:29:52
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00930980
Message ID:
00931001
Views:
15
Hola Alvaro:

I usually do what Kevin suggested: use a class with static properties.

You can also use the localization features of .NET and store all your messages in resource files. I believe this is what Microsoft recommends, although, I must admit that I usually don't use resource files. Anyway, here is a good tutorial on how to use localization in .NET:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=211


Hector

>Sorry. English is not my first lenguage.
>
>In VFP exists .h files where is possible to define a constant and later any program doing (#include) can have access to these.
>
>Which is equivalent of this functionality in C # (if it exists)?
>
>Which is the best one practices to define constants (like for example all messages error, alert, etc) in a single part (it will be in a class)?
>
>Thanks for your comments.
Hector Correa
Previous
Reply
Map
View

Click here to load this message in the networking platform