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"
Now this is just a guess, because I’m not sure what you’re aiming for but did you consider using a
Dictionaryobject?A
Dictionaryworks 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.