<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[Jorkin.ME - 蜗居，我们离“家”越来越远。 - 敝帚自珍]]></title>
<link>http://Jorkin.ME/</link>
<description><![CDATA[为了谁？为了什么？值不值得？为什么别人那么幸福？-Jorkin.ME]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[Jorkin2000(AT)hotmail.com(Jorkin)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>Jorkin.ME - 蜗居，我们离“家”越来越远。</title>
	<url>http://Jorkin.ME/images/logos.gif</url>
	<link>http://Jorkin.ME/</link>
	<description>Jorkin.ME - 蜗居，我们离“家”越来越远。</description>
</image>

			<item>
			<link>http://Jorkin.ME/article.asp?id=653</link>
			<title><![CDATA[ASP常用函数:NewID()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Fri,11 Dec 2009 16:02:43 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=653</guid>
		<description><![CDATA[<font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:真正实现ACCESS随机选取记录功能<br />'来源:http://jorkin.reallydo.com/article.asp?id=653<br /><br /></font><font color="#0000ff">Function </font>NewID<font color="#000080">(</font>PKey<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#008000">'NewID = &quot; Sin(&quot; &amp; Timer &amp; &quot;*&quot; &amp; PKey &amp; &quot;) &quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>NewID <font color="#000080">= </font><font color="#800000">&quot; Rnd(-&quot; </font><font color="#000080">&amp; </font>Timer <font color="#000080">&amp; </font><font color="#800000">&quot;*&quot; </font><font color="#000080">&amp; </font>PKey <font color="#000080">&amp; </font><font color="#800000">&quot;) &quot;<br /></font><font color="#0000ff">End Function<br /></font><font color="#8000ff">%&gt;<br /><br /></font>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=631</link>
			<title><![CDATA[Javascript常用函数:Array.remove()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Mon,01 Jun 2009 18:07:42 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=631</guid>
		<description><![CDATA[<font color="#0000a0">Array</font><font color="#000080">.</font><font color="#0000ff">prototype</font><font color="#000080">.</font>remove <font color="#000080">= </font><font color="#0000ff">function</font><font color="#000080">(</font>b<font color="#000080">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">var </font>a <font color="#000080">= </font><font color="#0000ff">this</font><font color="#000080">.</font><font color="#0000a0">indexOf</font><font color="#000080">(</font>b<font color="#000080">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">if </font><font color="#000080">(</font>a <font color="#000080">&gt;= </font><font color="#800080">0</font><font color="#000080">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">this</font><font color="#000080">.</font>splice<font color="#000080">(</font>a<font color="#000080">, </font><font color="#800080">1</font><font color="#000080">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">return true</font><font color="#000080">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">return false</font><font color="#000080">;<br />};<br /></font>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=627</link>
			<title><![CDATA[Javascript常用函数:dbc2sbc()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Tue,19 May 2009 21:20:49 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=627</guid>
		<description><![CDATA[<p><b><span style="COLOR: #0000c0">function</span></b><span> <span style="COLOR: black">dbc2sbc</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">sStr</span><span style="COLOR: #5c5c5c">){</span></span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">dbc2sbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">sStr</span><span style="COLOR: #5c5c5c">;</span></span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">for</span></b> <span style="COLOR: #5c5c5c">(</span><b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: #004080">65281</span><span style="COLOR: #5c5c5c">;</span> <span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">&lt;</span> <span style="COLOR: #004080">65375</span><span style="COLOR: #5c5c5c">;</span> <span style="COLOR: black">i</span><span style="COLOR: #5c5c5c">++)</span> <span style="COLOR: #5c5c5c">{</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">re</span> <span style="COLOR: #5c5c5c">=</span> <b><span style="COLOR: #0000c0">new</span></b> <span style="COLOR: black">RegExp</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">String</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">fromCharCode</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">i</span><span style="COLOR: #5c5c5c">),</span> <span style="COLOR: #005c00">&quot;g&quot;</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">va</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">String</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">fromCharCode</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">-</span> <span style="COLOR: #004080">65248</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: black">dbc2sbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">dbc2sbc</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">replace</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">re</span><span style="COLOR: #5c5c5c">,</span> <span style="COLOR: black">va</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp; <span style="COLOR: #5c5c5c">}</span></span><br /><span>&nbsp;&nbsp;&nbsp; <span style="COLOR: black">dbc2sbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">dbc2sbc</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">replace</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: #800040">/</span></span><span style="COLOR: #800040; FONT-FAMILY: 宋体">　</span><span style="COLOR: #800040">/g</span><span style="COLOR: #5c5c5c">,</span><span> <span style="COLOR: #005c00">' '</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">return</span></b> <span style="COLOR: black">dbc2sbc</span><span style="COLOR: #5c5c5c">;</span></span><br /><span style="COLOR: #5c5c5c">}</span></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=626</link>
			<title><![CDATA[Javascript常用函数:sbc2dbc()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Mon,18 May 2009 21:15:36 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=626</guid>
		<description><![CDATA[<p><b><span style="COLOR: #0000c0">function</span></b><span> <span style="COLOR: black">sbc2dbc</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">sStr</span><span style="COLOR: #5c5c5c">){</span></span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">sbc2dbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">sStr</span><span style="COLOR: #5c5c5c">;</span></span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">for</span></b> <span style="COLOR: #5c5c5c">(</span><b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: #004080">33</span><span style="COLOR: #5c5c5c">;</span> <span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">&lt;</span> <span style="COLOR: #004080">127</span><span style="COLOR: #5c5c5c">;</span> <span style="COLOR: black">i</span><span style="COLOR: #5c5c5c">++)</span> <span style="COLOR: #5c5c5c">{</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: black">stringFromCharCode</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">String</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">fromCharCode</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">i</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">switch</span></b> <span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">stringFromCharCode</span><span style="COLOR: #5c5c5c">)</span> <span style="COLOR: #5c5c5c">{</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;(&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;)&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;*&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;+&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;/&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;\\&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;[&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;]&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;?&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;$&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;.&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;^&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">case</span></b> <span style="COLOR: #005c00">&quot;|&quot;</span><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: black">stringFromCharCode</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: #005c00">'\\'</span> <span style="COLOR: #5c5c5c">+</span> <span style="COLOR: black">stringFromCharCode</span><span style="COLOR: #5c5c5c">;</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">default</span></b><span style="COLOR: #5c5c5c">:</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">break</span></b><span style="COLOR: #5c5c5c">;</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: #5c5c5c">}</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">re</span> <span style="COLOR: #5c5c5c">=</span> <b><span style="COLOR: #0000c0">new</span></b> <span style="COLOR: black">RegExp</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">stringFromCharCode</span><span style="COLOR: #5c5c5c">,</span> <span style="COLOR: #005c00">&quot;g&quot;</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">var</span></b> <span style="COLOR: black">va</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">String</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">fromCharCode</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">i</span> <span style="COLOR: #5c5c5c">+</span> <span style="COLOR: #004080">65248</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: black">sbc2dbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">sbc2dbc</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">replace</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: black">re</span><span style="COLOR: #5c5c5c">,</span> <span style="COLOR: black">va</span><span style="COLOR: #5c5c5c">);</span></span><br /><span>&nbsp;&nbsp;&nbsp; <span style="COLOR: #5c5c5c">}</span></span><br /><span>&nbsp;&nbsp;&nbsp; <span style="COLOR: black">sbc2dbc</span> <span style="COLOR: #5c5c5c">=</span> <span style="COLOR: black">sbc2dbc</span><span style="COLOR: #5c5c5c">.</span><span style="COLOR: black">replace</span><span style="COLOR: #5c5c5c">(</span><span style="COLOR: #800040">/ /g</span><span style="COLOR: #5c5c5c">,</span> <span style="COLOR: #005c00">'</span></span><span style="COLOR: #005c00; FONT-FAMILY: 宋体">　</span><span style="COLOR: #005c00">'</span><span style="COLOR: #5c5c5c">);</span><br /><span>&nbsp;&nbsp;&nbsp; <b><span style="COLOR: #0000c0">return</span></b> <span style="COLOR: black">sbc2dbc</span><span style="COLOR: #5c5c5c">;</span></span><br /><span style="COLOR: #5c5c5c">}</span></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=625</link>
			<title><![CDATA[ASP常用函数:getFileExt()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Sun,17 May 2009 00:11:39 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=625</guid>
		<description><![CDATA[<p><font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:取得文件扩展名<br />'来源:http://jorkin.reallydo.com/article.asp?id=625<br /><br /></font><font color="#0000ff">Function </font>getFileExt<font color="#000080">(</font>sFileName<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>getFileExt <font color="#000080">= </font>Mid<font color="#000080">(</font>sFileName<font color="#000080">, </font>InstrRev<font color="#000080">(</font>sFileName<font color="#000080">, </font><font color="#800000">&quot;.&quot;</font><font color="#000080">) + </font><font color="#800080">1</font><font color="#000080">)<br /></font><font color="#0000ff">End Function<br /></font><font color="#8000ff">%&gt;<br /></font></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=624</link>
			<title><![CDATA[ASP常用函数:Luhn()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Sat,16 May 2009 23:57:54 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=624</guid>
		<description><![CDATA[<p><font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:信用卡</font><font color="#ff0000">验证</font><font color="#008000">Luhn算法<br />'来源:http://jorkin.reallydo.com/article.asp?id=624<br /><br /></font><font color="#0000ff">Function </font>Luhn<font color="#000080">(</font><font color="#0000ff">byVal </font>sCard<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">Dim </font>iSum<font color="#000080">, </font>iCard<font color="#000080">, </font>bBool<br />&nbsp;&nbsp;&nbsp;&nbsp;sCard <font color="#000080">= </font>CStr<font color="#000080">(</font>sCard<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>iSum <font color="#000080">= </font><font color="#800080">0<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>bBool <font color="#000080">= </font>CBool<font color="#000080">(</font>Len<font color="#000080">(</font>sCard<font color="#000080">) </font><font color="#0000ff">Mod </font><font color="#800080">2</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">If Not </font>IsNumeric<font color="#000080">(</font>sCard<font color="#000080">) </font><font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dim </font>regEx<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">Set </font>regEx <font color="#000080">= </font><font color="#0000ff">New </font>RegExp<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;regEx<font color="#000080">.</font>Global <font color="#000080">= </font><font color="#0000ff">true<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>regEx<font color="#000080">.</font>Pattern <font color="#000080">= </font><font color="#800000">&quot;\D&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>sCard <font color="#000080">= </font>regEx<font color="#000080">.</font>Replace<font color="#000080">(</font>sCard<font color="#000080">, </font><font color="#800000">&quot;&quot;</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">Set </font>regEx <font color="#000080">= </font><font color="#0000ff">Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;For </font>i <font color="#000080">= </font><font color="#800080">1 </font><font color="#0000ff">To </font>Len<font color="#000080">(</font>sCard<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>iCard <font color="#000080">= </font>CInt<font color="#000080">(</font>Mid<font color="#000080">(</font>sCard<font color="#000080">, </font>i<font color="#000080">, </font><font color="#800080">1</font><font color="#000080">))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">If </font>bBool <font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>iSum <font color="#000080">= </font>iSum <font color="#000080">+ </font>iCard<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If </font>iCard <font color="#000080">* </font><font color="#800080">2 </font><font color="#000080">&gt; </font><font color="#800080">9 </font><font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>iSum <font color="#000080">= </font>iSum <font color="#000080">+ (</font>iCard <font color="#000080">* </font><font color="#800080">2 </font><font color="#000080">- </font><font color="#800080">9</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>iSum <font color="#000080">= </font>iSum <font color="#000080">+ (</font>iCard <font color="#000080">* </font><font color="#800080">2</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>bBool <font color="#000080">= </font><font color="#0000ff">Not </font>bBool<br />&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">Next<br />&nbsp;&nbsp;&nbsp;&nbsp;If </font>iSum <font color="#0000ff">Mod </font><font color="#800080">10 </font><font color="#000080">= </font><font color="#800080">0 </font><font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>Luhn <font color="#000080">= </font><font color="#0000ff">True<br />&nbsp;&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>Luhn <font color="#000080">= </font><font color="#0000ff">False<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br />End Function<br /></font><font color="#8000ff">%&gt;<br /></font></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=623</link>
			<title><![CDATA[ASP常用函数:getArrayDimension()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Fri,15 May 2009 23:02:21 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=623</guid>
		<description><![CDATA[<p><font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:返回指定数组的维数。<br />'来源:http://jorkin.reallydo.com/article.asp?id=623<br /><br /></font><font color="#0000ff">Function </font>getArrayDimension<font color="#000080">(</font>aReallydo<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">On Error Resume Next<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>getArrayDimension <font color="#000080">= -</font><font color="#800080">1<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">If Not </font>IsArray<font color="#000080">(</font>aReallydo<font color="#000080">) </font><font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit Function<br />&nbsp;&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For </font>i <font color="#000080">= </font><font color="#800080">1 </font><font color="#0000ff">To </font><font color="#800080">60<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>iReallyDo <font color="#000080">= </font>UBound<font color="#000080">(</font>aReallydo<font color="#000080">, </font>i<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">If </font>Err <font color="#0000ff">Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>Err<font color="#000080">.</font>Clear<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">Exit Function<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>getArrayDimension <font color="#000080">= </font>i<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">End If<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;&nbsp;End If<br />End Function<br /></font><font color="#8000ff">%&gt; </font></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=618</link>
			<title><![CDATA[Oracle常用函数:IsNumeric()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Mon,11 May 2009 23:58:38 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=618</guid>
		<description><![CDATA[<p><span style="COLOR: blue">Create</span> <span style="COLOR: blue">Or</span> <span style="COLOR: blue">Replace</span> <span style="COLOR: blue">Function</span> <span>IsNumeric</span><span><span style="COLOR: black">(</span></span><span><span style="COLOR: navy">Svalue</span></span><span style="COLOR: navy"> </span><span style="COLOR: blue">In</span> <span style="COLOR: blue">Varchar2</span><span style="COLOR: black">)</span> <span style="COLOR: blue">Return</span> <span style="COLOR: blue">Number</span> <span style="COLOR: blue">As</span><br />&nbsp;&nbsp;&nbsp; <span>Ivalue</span> <span style="COLOR: blue">Numeric</span><span style="COLOR: black">;</span><br /><span style="COLOR: blue">Begin</span><br />&nbsp;&nbsp;&nbsp; <span style="COLOR: blue">Begin</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span><span>Ivalue</span></span><span> <span style="COLOR: black">:=</span></span> <span><span style="COLOR: red">To_Number</span></span><span style="COLOR: black">(</span><span><span style="COLOR: navy">Svalue</span></span><span style="COLOR: black">);</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span><span style="COLOR: blue">Return</span><span style="COLOR: black">(</span></span><span style="COLOR: red">1</span><span style="COLOR: black">);</span><br />&nbsp;&nbsp;&nbsp; <span style="COLOR: blue">Exception</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="COLOR: blue">When</span> <span style="COLOR: blue">Others</span> <span style="COLOR: blue">Then</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span><span style="COLOR: blue">Return</span><span style="COLOR: black">(</span></span><span style="COLOR: red">0</span><span style="COLOR: black">);</span><br />&nbsp;&nbsp;&nbsp; <span style="COLOR: blue">End</span><span style="COLOR: black">;</span><br /><span style="COLOR: blue">End</span> IsNumeric<span style="COLOR: black">;</span> </p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=616</link>
			<title><![CDATA[ASP常用函数:getRemoteFileSize()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Sun,10 May 2009 20:23:50 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=616</guid>
		<description><![CDATA[<p><font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:获取远程文件大小<br />'来源:http://jorkin.reallydo.com/article.asp?id=616<br /><br /></font><font color="#0000ff">Function </font>getRemoteFileSize<font color="#000080">(</font>sFileUrl<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">Dim </font>oXMLHttp<br />&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">Set </font>oXMLHttp <font color="#000080">= </font>Server<font color="#000080">.</font>CreateObject<font color="#000080">(</font><font color="#800000">&quot;MSXML2.XMLHTTP&quot;</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">With </font>oXMLHttp<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#000080">.</font>Open <font color="#800000">&quot;get&quot;</font><font color="#000080">, </font>sFileUrl<font color="#000080">, </font><font color="#0000ff">false<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#000080">.</font>setRequestHeader <font color="#800000">&quot;range&quot;</font><font color="#000080">, </font><font color="#800000">&quot;bytes=-1&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#000080">.</font>send<font color="#000080">()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>getRemoteFileSize <font color="#000080">= </font>Split<font color="#000080">(.</font>GetResponseHeader<font color="#000080">(</font><font color="#800000">&quot;Content-Range&quot;</font><font color="#000080">), </font><font color="#800000">&quot;/&quot;</font><font color="#000080">)(</font><font color="#800080">1</font><font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff">End With<br />&nbsp;&nbsp;&nbsp;&nbsp;Set </font>oXMLHttp <font color="#000080">= </font><font color="#0000ff">Nothing<br />End Function<br /></font><font color="#8000ff">%&gt;<br /></font></p>]]></description>
		</item>
		
			<item>
			<link>http://Jorkin.ME/article.asp?id=615</link>
			<title><![CDATA[ASP常用函数:isLeapYear()]]></title>
			<author>Jorkin2000(AT)hotmail.com(Jorkin)</author>
			<category><![CDATA[敝帚自珍]]></category>
			<pubDate>Sat,09 May 2009 19:49:55 +0800</pubDate>
			<guid>http://Jorkin.ME/default.asp?id=615</guid>
		<description><![CDATA[<p><font color="#8000ff">&lt;%<br /></font><font color="#008000">'功能:判断是否是闰年<br />'来源:http://jorkin.reallydo.com/article.asp?id=615<br /><br /></font><font color="#0000ff">Function </font>isLeapYear<font color="#000080">(</font>sYear<font color="#000080">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</font>isLeapYear <font color="#000080">= </font><font color="#0000ff">False<br />&nbsp;&nbsp;&nbsp;&nbsp;If </font>sYear <font color="#0000ff">Mod </font><font color="#800080">4 </font><font color="#000080">= </font><font color="#800080">0 </font><font color="#0000ff">And </font><font color="#000080">(</font>sYear <font color="#0000ff">Mod </font><font color="#800080">100 </font><font color="#000080">&lt;&gt; </font><font color="#800080">0 </font><font color="#0000ff">Or </font><font color="#000080">(</font>sYear <font color="#0000ff">Mod </font><font color="#800080">100 </font><font color="#000080">= </font><font color="#800080">0 </font><font color="#0000ff">And </font>sYear <font color="#0000ff">Mod </font><font color="#800080">400 </font><font color="#000080">= </font><font color="#800080">0</font><font color="#000080">)) </font><font color="#0000ff">Then </font>isLeapYear <font color="#000080">= </font><font color="#0000ff">True<br />End Function<br /></font><font color="#8000ff">%&gt;<br /></font></p>]]></description>
		</item>
		
</channel>
</rss>
