The information in this article applies to:
SUMMARYAdding an ampersand (&) character to the end of a Hexadecimal number will ensure that it is not sign extended. This can be useful when an unsigned constant must be passed to a routine and the magnitude of the constant is greater than or equal to 32,768 (&H8000 in Hexadecimal). If the ampersand is not placed on the end of the constants, Visual Basic assumes that the numbers are sign extended. MORE INFORMATION
The following example illustrates the effect of an ampersand on a
Hexadecimal constant:
Additional query words:
Keywords : kbprg kbVBp400 kbVBp500 kbhowto VB4WIN VBKBProgramming VBKBVBA |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |