Hex Function

Kiironnita tonaaleeshshu hornyo wobe sa'anno naannifikiima qolanno.

Ganallo:


Hex (Kiiro)

Qolote guma:

Naanni-fikiima

Eishshuwa:

Kiiro: Tonaaleeshshu kiiro wido woleessa kiirote handaara.

Error codes:

5 Horiweelo aante woshsho

Lawishsha:


Sub ExampleHex
' $[officename] Calc giddo Qarafi'rimalla horonsi'ranno
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
' Tonaaleeshshu hornyo giddonni seeda intijere qolanno.
    Hex2Int = clng( sHex )
End Function
 
Function Int2Hex( iLong As Long) As String
' Intijerete giddo tonaaleeshshu hornyo shallagganno.
    Int2Hex = "&H" & Hex( iLong )
End Function