asp下返回以千分位显示数字格式化的数值
'****************************** function comma(str)if not(isnumeric(str)) or str = 0 thenresult = 0elseif len(fix(str)) 0 thendec = mid(str,pos)end
'****************************** function comma(str)if not(isnumeric(str)) or str = 0 thenresult = 0elseif len(fix(str)) 0 thendec = mid(str,pos)end
'****************************** function MakePassword(byval maxlen)dim strnewpassdim whatsnext, upper, lower, intcounterrandomizefor intcounter = 1 to
'****************************** Public Function FormatDate(DateAndTime, para)On Error Resume NextDim y, m, d, h, mi, s, strDateTimeFormatDate = DateA
'****************************** function GetMax(str) num=split(str,",") max=num(0) for ii=0 to ubound(num) if cint(num(ii))>cint(max) then max=num
'****************************** Function Userip() Dim GetClientIP '如果客户端用了代理服务器,则应该用ServerVariables("HTTP_X_FORWARDED_FOR")方法 GetClientIP = Request.S
截取字符串特定部分内容函数 '****************************** Function GetKey(HTML,Start,Last) filearray=split(HTML,Start) filearray2=split(filearray(1),Last) GetKey=
测试")%> '****************************** Function RemoveHref_A(HTMLstr) Dim n,str1,str2,str3,str4 HTMLstr = Lcase(HTMLstr) For n=1 to Ubound(Split(HT
这是我自己的心得,给大家作个参考。 我的目的是让开发变得简单,尽可能少地考虑实现语句,更多地把精力用于思考业务逻辑。希望我的文章对大家有所启发和帮助。 如果你对ASP不熟悉,可以先看以下教程: 1、http://布鲁斯狼的ASP编程入门进阶 2、www.w3schools.com的ASP教程(英文\
Chr 函数 返回与指定的 ANSI 字符代码相对应的字符。 Chr(charcode) charcode 参数是可以标识字符的数字。 说明 从 0 到 31 的数字表示标准的不可打印的 ASCII 代码。例如,Chr(10) 返回换行符。 下面例子利用 Chr 函数返回与指定的字符代码相对应的字符
本帖将收集和征集最全面的ASP编程应用中通用功能函数,人人为我,我为人人:) 只要大家每人献出一两条自己收藏已久,精典的通用函数,我想本帖将会对许许多多的ASP编程爱好者、工作者有很大的帮助,也将成为大家ASP编程的必备函数集。 赶快检查您自己的函数库吧,看一下你有的我们这里都有了吗? 如果你发现了