How To Retrieve Individual Bytes from a Multi-Byte Type in VB (171652)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0, when used with:
- Microsoft Visual Basic Professional Edition for Windows 5.0, when used with:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0, when used with:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Word 97 for Windows
This article was previously published under Q171652 SUMMARY
This article demonstrates how to copy the individual bytes of data in a
multi-byte data type, such as a long integer or a single-precision floating-
point number, into a byte array. It also illustrates how to take an array
of bytes and turn it into a specific data type that Visual Basic (and VBA)
will recognize.
REFERENCES
For more information on the use of the RtlMoveMemory function in Visual
Basic, please see the following article in the Microsoft Knowledge Base:
129947 Win32 Replacement for the hmemcpy Function
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kb32bitOnly kbhowto kbProgramming KB171652 |
---|
|