CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Location
    singapore
    Posts
    6

    string convert to long How?

    Please help me with the codes
    to convert string values to long
    The following command is wrong because
    values from parameters are string, but
    I need it to be converted to long.
    How to do that ?

    long fromcgi = getParameter("DATE");




  2. #2
    Join Date
    Dec 1999
    Location
    Chonghe, Taipei County, Taiwan, R.O.C.
    Posts
    231

    Re: string convert to long How?

    You may use Long.parseLong(String s) or Long.valueOf(String s) to convert your string to a long
    value.
    good luck,
    Alfred Wu


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

Featured