Generate an array of letters of alphabet in non-english and add different value for each letter in C# or VB.net

How to generate an alphabet (strAbc) and add a different value (strAbcVal) to each letter (strAbc) where some letters have a two char, like (DŽ,NJ,LJ), and than sum string sName Can you help me?

dim sName as string ="LJILJANA"

dim strAbc as string ="A,B,C,D,Đ,DŽ,E,F,G,H,I,J,K,L,LJ,M,N,NJ,O,P,R,S,Š,T,U,V,Z,Ž"

dim strAbcVal as string="11,2,7,14,5,9,7,15,9,10,16,12,9,3,5,4,12,11,22,70,61,22,50,14,1,2,7,15,19,40"

Answers


Now this is just a guess, because I'm not sure what you're aiming for but did you consider using a Dictionary object?

A Dictionary works like a dictionary in the real world. You have the unique keys and to each such key you have a corresponding value. In your case, the letters (or combos of letters) would be the keys and the numbers the actual values.

(Of course, since ut seems to be a 1-to-1 relation, the numbers can be used as keys as well.)

Please elaborate on your goal.


Need Your Help

How to create XML file in blackberry 10 device document directory through cascade QML?

c++ qml blackberry-10 cascade

I have XML data stored in QString/QByteArray, I want to write that xml data in new sample.xml file and save that file in device document directory.

Android Error: How to prevent overgrown APK file During compile process in eclipse?

android eclipse compilation android-install-apk

I have run into a issue here that is causing some setbacks for sure. Here is what happened.