Pointui » Home 2 Scripting Support

Put a value from a string to an int

(7 posts)
  • Started 8 months ago by LiveDuo
  • Latest reply from NorrinRadd
  • This topic is resolved
  1. 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...

    Posted 8 months ago #
  2. is there any answer???

    Even if the answer is that this is not possible please tell it to me...

    Posted 8 months ago #
  3. NorrinRadd
    Member

    from reg or other source set to string1
    string2 = string1
    int = string2

    Posted 8 months ago #
  4. silentjoker
    Member

    give more detail onto what your doing? thats a weak question to get a direct answer.

    like what your converting input wise to what.

    Posted 8 months ago #
  5. @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 + ")");
    }

    Posted 8 months ago #
  6. 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

    Posted 8 months ago #
  7. NorrinRadd
    Member

    sure no prob

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.