首页 > 应用开发 > IT综合 > asp中以十六进制显示字串数据 (转)
整理编辑:to:webmaster@chinaASP.com">China ASP
答:sub ShowHex(data)
dim l
dim i
dim ch
l=lenB(data)
for i = 1 to l
ch=midb(data,i,1)
h=trim(hex(ascB(ch)))
if len(h)=1 then
h="0"+h
end if
response.write h+" "
if i mod 15 =0 then
response.write "
"
end if
next
end sub
加入时间:1999-11-8
阅读次数:635
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10790690/viewspace-953098/ ,如需转载,请注明出处,否则将追究法律责任。