How convert Hex String into Byte Array in VB6

前端 未结 2 1576
夕颜
夕颜 2021-01-27 07:30

I have the following byte array.

Dim Template(1023) As Byte

Then i call the fingerprint scanner device function and returns the following:

2条回答
  •  孤城傲影
    2021-01-27 08:17

    duplicate:

    Convert hex value to a decimal value in VB6

    from Andre Laszlo:

    Dim hexVal as String 
    hexVal = "#7B19AB" 
    Dim intVal as Integer 
    intVal = Val("&H" & Replace(hexVal, "#", ""))
    

提交回复
热议问题