dim input1 as string
dim output1 as integer
input1 = “AB” ‘此為Hex 的字串 = 10進位 171
要如何轉為 171 呢
只要前後加點東西即可
input1 = “&H” & input1 & “&”
output1 = val(input1)
==> 如此 output = 171
全站熱搜
dim input1 as string
dim output1 as integer
input1 = “AB” ‘此為Hex 的字串 = 10進位 171
要如何轉為 171 呢
只要前後加點東西即可
input1 = “&H” & input1 & “&”
output1 = val(input1)
==> 如此 output = 171
留言列表