在VB6中将十六进制值转换为十进制值

web*_*ad3 7 vb6

如何在VB6中将十六进制值转换为十进制值?

我正试图看看它是否有效:

Dim hexVal as string
hexVal = "#7B19AB"
clng("&H" & hexVal)
Run Code Online (Sandbox Code Playgroud)

但是,我收到" Type MisMatch "错误.

Joh*_*nFx 14

摆脱#符号

Dim hexVal as string
hexVal = "7B19AB"
clng("&H" & hexVal)
Run Code Online (Sandbox Code Playgroud)


Coe*_*ect 5

去掉 hexVal 字符串中的数字符号 (#)。