Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to read value from resource file with combination. I create one resource file which contains Marathi digits from 0 to 9. Now I read this digits like 10 11 that is using combination of digits. I read it up to 9 but how to read with combination of values in resource file.

Is there is other way without append?

Please help me.

Thanks a lot.
Posted
Updated 19-Feb-11 0:54am
v3
Comments
OriginalGriff 19-Feb-11 5:07am    
No, sorry, I don't understand that at all.
Please, edit your question and try to explain in more detail what you are trying to do.
If possible, give a short example.
Henry Minute 19-Feb-11 6:57am    
I think that you will have to use 'Improve question' to include the code that you currently use to read the resource file, which will enable people to suggest an appropriate approach.

1 solution

Well if the combination of digits would work for you in order to define 10, 11 or so from 1 & 0 then you can do somthing like:
C#
Resources.GetString("One"); // for 1
Resources.GetString("Zero"); // for 0
Resources.GetString("One") + Resources.GetString("Zero"); // for 10
Resources.GetString("One") + Resources.GetString("One"); // for 11


Though, I would not suggest you to do something like this. This is not the standard way nor a right one. Generally, strings are localized. Numbers and data kind of thing are localized by OS itself when you install a particular language MUI (Marathi MUI in your case)

For strings, you can sure go for concatenation if they mean correctly. Generally, two words separately might mean different and combining the two might mean totally different. So, look into the logic and need, implement accordingly.
 
Share this answer
 
Comments
Espen Harlinn 19-Feb-11 10:18am    
Good reply :)
Sandeep Mewara 19-Feb-11 10:21am    
Thanks. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900