home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4437 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.4 KB

  1. From: ijd@hplb.hpl.hp.com (Ian J Dickinson)
  2. Date: Fri, 18 Dec 1992 17:34:14 GMT
  3. Subject: Re: How to make a Long from ints in VB
  4. Message-ID: <IJD.92Dec18173414@idickins.hpl.hp.com>
  5. Organization: Hewlett-Packard Laboratories, Bristol, UK.
  6. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!otter.hpl.hp.com!hpltoad!idickins!ijd
  7. Newsgroups: comp.os.ms-windows.programmer.misc
  8. References: <BzEp1J.I83@fsg.com> <1992Dec18.012559.4297@hplabsz.hpl.hp.com>
  9. Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
  10. Lines: 19
  11. In-Reply-To: yefchak@hplabsz.hpl.hp.com's message of Fri, 18 Dec 1992 01:25:59 GMT
  12. Nntp-Posting-Host: idickins.hpl.hp.com
  13.  
  14.  
  15. > There may be a better way, but I just did something like
  16. > new_long = hi_int * 65536 + lo_int.  
  17. There is indeed.  Look up functions CLng and CInt in the language reference
  18. manual.
  19.  
  20. How did I find this out?  By browsing the manual at random.  Is there a
  21. reference to these functions in the programmer's guide? No, or at least not
  22. that I could find.  Grrr. Let's hope the 2.0 documentation is better.
  23.  
  24. > --George Yefchak
  25. Ian.
  26.  
  27.  
  28. |Ian Dickinson    HP Labs Bristol (Knowledge Based Programming Dept)   England|
  29. |Email: ijd@hplb.hpl.hp.com    | Enough if something from our hands have power|
  30. |   These opinions are mine,   | To live and act and serve the future hour    |
  31. |  and not (necessarily) HP's  |                                 - Wordsworth |
  32.  
  33.