×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    String - long conversion

    How do I convert a string to long? Or at least long array? Is there any inbuilt function? Will getBytes() help me?

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: String - long conversion

    Hi,

    I'm not sure I understand what you mean, but in general you can convert a string to long (or other primitive types) like this:
    Code:
    String s = "123321"
    long x = Long.parseLong(s)
    //x is now 123321
    Hope that helps.

Similar Threads

  1. Parsing the long string based on the type of Font.
    By HidayathKhan in forum Symbian
    Replies: 4
    Last Post: 2007-11-06, 12:49
  2. String conversion
    By chrishawaii in forum Symbian Media (Closed)
    Replies: 5
    Last Post: 2005-06-06, 04:50
  3. 关于Float的问题,急死了,各位帮忙一下,谢谢!
    By show_up in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 4
    Last Post: 2004-08-17, 08:57
  4. PC Connectity with VB6
    By mkintanar in forum PC Suite API and PC Connectivity SDK
    Replies: 5
    Last Post: 2003-09-24, 04:18
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

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