i think this question have been asked many times ago but it not resolved yet ...
how can we put a value from a string to an intenger...
i think this question have been asked many times ago but it not resolved yet ...
how can we put a value from a string to an intenger...
is there any answer???
Even if the answer is that this is not possible please tell it to me...
from reg or other source set to string1
string2 = string1
int = string2
give more detail onto what your doing? thats a weak question to get a direct answer.
like what your converting input wise to what.
@silentjoker
the applet gets the values(score) from the XmlNode in x-x(eg. 3-2 or 4-0) and the it parse it in s1 and s2 successfully with this script:
tr1.GetChildValue(2, nresult);
and i make it 2 values with the script below:
int n1 = 0;
int n2 = nresult.IndexOfRev("-");
n2+=1;
string s1 = nresult.SubString(n1, nresult.IndexOf("-"));
string s2 = nresult.SubString(n2, nresult.IndexOf("-"));
then i want to compare the values but i cant because s1 and s2 are strings...
if (s1 > s2) {
nfixture.SetText("Win " + team2 + "(" + nresult + ")");
}
Thanks Norrin it works i didnt know that i should put the string value into another string eg. string2 and then from string2 to the intenger...
THANKS
sure no prob
You must log in to post.