The Hex function returns the hexadecimal value of the specified value.
Syntax | ||||
Hex(Value) | ||||
Return value | ||||
Type |
Description | |||
String |
| |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
Value |
Variant |
ByVal |
Value for determining the hexadecimal value |
If the value of Value is not an integer, the function rounds the value to the nearest integer before evaluation.
Example:
Dim S As String
S := Hex(208)
S contains "D0" after execution.