HOWTO: Use an Ampersand (&) to Suppress Sign ExtensionLast reviewed: March 20, 1997Article ID: Q138520 |
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 INFORMATIONThe following example illustrates the effect of an ampersand on a Hexadecimal constant:
|
Keywords : kbprg vb4all vb4win vb5all vb5howto VBKBProgramming VBKBVBA kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |