Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Hex FunctionThis standard VB function returns the hexadecimal representation of a number, as a string. SyntaxReturnsThe hexadecimal representation of number as a string. UsageIf number is an integer, the return string contains up to four hexadecimal digits; otherwise, the value is converted to a long integer, and the string can contain up to 8 hexadecimal digits. To represent a hexadecimal number directly, precede the hexadecimal value with The dollar sign ($) in the function name is optional. If it is included, the return type is string. Otherwise the function returns a variant of vartype 8 (string). ExampleThis example returns the hex value for a number entered by the user. Sub Button_Click See Also |
Siebel VB Language Reference |