Hex Function [Runtime]/text/sbasic/shared/03080801.xhpSun Microsystems, Inc.converted from old format - fpeHex functionHex Function [Runtime]Returns a string that represents the hexadecimal value of a number.Syntax:Hex (Number)Return value:StringParameters:Number: Any numeric expression that you want to convert to a hexadecimal number.Example:Sub ExampleHexREM uses BasicFormulas in $[officename] CalcDim a2, b2, c2 as Stringa2 = "&H3E8"b2 = Hex2Int(a2)MsgBox b2c2 = Int2Hex(b2)MsgBox c2End SubFunction Hex2Int( sHex As String ) As LongREM Returns a Long-Integer from a hexadecimal value.Hex2Int = clng( sHex )End FunctionFunction Int2Hex( iLong As Long) As StringREM Calculates a hexadecimal value in Integer.Int2Hex = "&H" & Hex( iLong )End Function