手机
当前位置:查字典教程网 >编程开发 >ASP教程 >ASP常用函数:CStrIP()
ASP常用函数:CStrIP()
摘要:作用:把长整型数字转为IP地址

作用:把长整型数字转为IP地址

<%

FunctionCStrIP(ByValanNewIP)

DimlsResults

DimlnTemp

DimlnIndex

ForlnIndex=3To0Step-1

lnTemp=Int(anNewIP/(256^lnIndex))

lsResults=lsResults&lnTemp&"."

anNewIP=anNewIP-(lnTemp*(256^lnIndex))

Next

lsResults=Left(lsResults,Len(lsResults)-1)

CStrIP=lsResults

EndFunction

%>

【ASP常用函数:CStrIP()】相关文章:

ASP常用函数:Str4Js()

ASP的天空小偷

ASP常用的函数

ASP编程实用20例

ASP常用函数:getIMG()

ASP常用的几个功能模块

ASP 非法字符过滤函数

asp 常用函数用法

ASP常用函数:ReplaceHTML

ASP常用函数:getpy()

精品推荐
分类导航