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

    how to convert long to an integer

    I tried the the following command
    but it does not seem to work.
    Can any one help to convert a long to an integer

    integervalue = Long.intValue(longvalue);


  2. #2
    Guest

    Re: how to convert long to an integer

    what about just casting long to int?

    long l=1234;
    int i;
    i = (int)l;





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