Results 1 to 3 of 3

Thread: How to convert a string type into integer

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    36

    How to convert a string type into integer

    Hi,

    How can I convert a string type, for exampl1243124, into an integer in C#?

    Thanks

    James

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Convert.ToInt64(string)
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    OR
    int.Parse(string);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width