Tuesday, August 31, 2010

Visual Basic Math Function : Hex

Purpose : The Hex function converts a decimal numeric expression to a variant or string that represents the value of the numeric expression in expression in hexadecimal format.

Syantax :
Hex ( numExpression )

numExpression : Numeric expression to be conerted to hexadecimal notation.

A% = 140
B$ = Hex ( A% )

This example places a string with thehexadecimal value "8C" into the variable B$.

No comments:

Post a Comment