我写一下,你改成C#的写法吧。
----------------------------------
Function shwIp(addr)
tIp = split(addr,".")
for i = LBound(tIp) to UBound(tIp)
if tIp(i) < 10 then
strIp = "00" & tip(i)
elseif tIp(i) < 100 then
strIp = "0" & tIp(i)
else
strIp = tIp(i)
end if
shwIp = shwIp & "." & strIp
next
shwIp = right(shwIp,15)
End Function
sIP = "60.30.96.30" '//开始IP
eIP = "90.12.68.36" '//终止IP
uIP = "62.35.996.32" '//客户IP
if shwIp(uIP) >= shwIp(sIP) and shwIp(uIP) <= shwIp(eIP) then val = "T" else val = "F"
----------------------------------
记得给我加分