DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Snip Dadio Guest

    Convert a string


    Is there an aesy way to convert a string into an integer.
    ie.
    text "32" into the value 32


  2. #2
    dykechik Guest

    Re: Convert a string


    try:

    (*assuming snip_string is a String and snip_number is an INT)

    snip_string = Integer.parseInt( snip_number );

    -a.


    "Snip Dadio" <j.murray@automotive-solutions.com> wrote:
    >
    >Is there an aesy way to convert a string into an integer.
    >ie.
    >text "32" into the value 32
    >



  3. #3
    Tom Duffy Guest

    Re: Convert a string


    You mean:

    snip_number = Integer.parseInt(snip_string);

    "dykechik" <dykechik@aol.com> wrote:
    >
    >try:
    >
    >(*assuming snip_string is a String and snip_number is an INT)
    >
    >snip_string = Integer.parseInt( snip_number );
    >
    >-a.
    >
    >
    >"Snip Dadio" <j.murray@automotive-solutions.com> wrote:
    >>
    >>Is there an aesy way to convert a string into an integer.
    >>ie.
    >>text "32" into the value 32
    >>

    >



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