String to Integer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yuen

    #1

    String to Integer

    Hi all,
    I am new to C#. How can I convert string to int? Thx


  • Daniel O'Connell

    #2
    Re: String to Integer

    or Int32.Parse()

    "Alvin Bruney" <.> wrote in message
    news:u8l%23ne3q DHA.3732@tk2msf tngp13.phx.gbl. ..[color=blue]
    > .ToInt32() ? or Convert.ToInt32 ()?
    >
    >
    >
    > "yuen" <s015972@mailse rv.cuhk.edu.hk> wrote in message
    > news:bp575s$2v7 5$1@justice.its c.cuhk.edu.hk.. .[color=green]
    > > Hi all,
    > > I am new to C#. How can I convert string to int? Thx
    > >
    > >[/color]
    >
    >
    >[/color]


    Comment

    • Alvin Bruney

      #3
      Re: String to Integer

      Ignore this idiot he is spoofing my email account. For credibility purposes
      I suppose.

      --


      -----------
      Got TidBits?
      Get it here: www.networkip.net/tidbits
      "Alvin Bruney" <.> wrote in message
      news:u8l#ne3qDH A.3732@tk2msftn gp13.phx.gbl...[color=blue]
      > .ToInt32() ? or Convert.ToInt32 ()?
      >
      >
      >
      > "yuen" <s015972@mailse rv.cuhk.edu.hk> wrote in message
      > news:bp575s$2v7 5$1@justice.its c.cuhk.edu.hk.. .[color=green]
      > > Hi all,
      > > I am new to C#. How can I convert string to int? Thx
      > >
      > >[/color]
      >
      >
      >[/color]


      Comment

      • Dean Bortell

        #4
        String to Integer

        Assume this

        string x = "Thomas";

        int y = Convert.ToInt32 (x);

        Hope this helps.
        Dean

        [color=blue]
        >-----Original Message-----
        >Hi all,
        >I am new to C#. How can I convert string to int? Thx
        >
        >
        >.
        >[/color]

        Comment

        Working...