IBM Lotus Symphony
|
Renvoie une chaîne de caractères représentant la valeur hexadécimale d'un nombre.
Hex (Number)
Chaîne de caractères
Number : toute expression numérique à convertir en nombre hexadécimal.
Sub ExampleHex
REM Utilise BasicFormulas dans Lotus Symphony Spreadsheets
Dim a2, b2, c2 as String
a2 = "&H3E8"
b2 = Hex2Int(a2)
MsgBox b2
c2 = Int2Hex(b2)
MsgBox c2
End Sub
Function Hex2Int( sHex As String ) As Long
REM Renvoie un nombre entier long à partir d'une valeur hexadécimale.
Hex2Int = clng( sHex )
End Function
Function Int2Hex( iLong As Long) As String
Calcule une valeur hexadécimale sous forme de nombre entier.
Int2Hex = "&H" & Hex( iLong )
End Function