DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    288

    c#; Type conversion

    I have s string containing value "25".

    In c#, how can I convert this into type int?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    int i = Int32.Parse(s);
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. c++ Type conversion problem
    By pooja in forum C++
    Replies: 3
    Last Post: 04-03-2005, 11:43 AM
  2. c++ Type conversion
    By pooja in forum C++
    Replies: 1
    Last Post: 04-01-2005, 02:45 PM
  3. Evil Type conversion is gone??
    By Michael Culley in forum .NET
    Replies: 1
    Last Post: 03-09-2002, 08:47 PM
  4. What is the UDT?
    By Tahui in forum VB Classic
    Replies: 2
    Last Post: 11-22-2000, 10:24 PM
  5. Unwanted data type conversion
    By Ronald Saikali in forum VB Classic
    Replies: 0
    Last Post: 09-22-2000, 04:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links