<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6210180776285544508</id><updated>2011-11-27T15:27:28.990-08:00</updated><title type='text'>Programming Resources &amp; Code Examples for visual basic, java, php, asp, c, c++, assemb</title><subtitle type='html'>Programming Resources &amp;amp; Code Examples for visual basic, java, php, asp, c, c++, assemb</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-6309741408772121141</id><published>2009-06-01T16:35:00.000-07:00</published><updated>2009-06-01T16:36:19.911-07:00</updated><title type='text'>Play Free Online Games   www.baggygames.com/games   العاب فلاش العاب جدة بايكرز موقع العاب جديدة او</title><content type='html'>&lt;center&gt;                           &lt;p&gt;&lt;span style="color:#cc0000;"&gt;&lt;b&gt;&lt;span style="font-size:6;"&gt;Welcome to&lt;br /&gt;                          &lt;/span&gt;&lt;span style="font-size:6;"&gt;BaggyGames.com&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;                          &lt;b&gt;&lt;span style="font-size:180%;color:#0000ff;"&gt;&lt;br /&gt;                          Here you can find tons of great online flash games to                            play.&lt;br /&gt;                          Remember to check back often because we are always                            adding new games.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;                           &lt;/center&gt;                           &lt;p align="left"&gt;&lt;b&gt; &lt;/b&gt;&lt;/p&gt;                           &lt;p align="left"&gt;&lt;span dir="ltr"&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;&lt;a href="http://www.baggygames.com/games/"&gt;&lt;span style="color:#0000ff;"&gt;Play&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#0000ff;"&gt;                            Free Online &lt;em&gt;Games&lt;/em&gt;, &lt;/span&gt;                           &lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;sports&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#0000ff;"&gt;                           &lt;em&gt;games&lt;/em&gt;, massive multiplayer &lt;em&gt;games&lt;/em&gt;,                            action &lt;em&gt;games&lt;/em&gt;, puzzle &lt;em&gt;games&lt;/em&gt;, &lt;/span&gt;                           &lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;flash&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#0000ff;"&gt;                           &lt;em&gt;games&lt;/em&gt; and more, casual &lt;em&gt;games&lt;/em&gt;. Free                            online and downloadable &lt;em&gt;games&lt;/em&gt;! Play arcade                           &lt;em&gt;games&lt;/em&gt;, board &lt;em&gt;games&lt;/em&gt;, card &lt;em&gt;games&lt;/em&gt;,                            puzzle &lt;em&gt;games&lt;/em&gt; and other free &lt;em&gt;games&lt;/em&gt; at                            Yahoo! &lt;em&gt;Games&lt;/em&gt;. Free &lt;em&gt;games&lt;/em&gt; &lt;/span&gt;                           &lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;online&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#0000ff;"&gt;                            from &lt;/span&gt;&lt;em&gt;                           &lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;Games&lt;/span&gt;&lt;/a&gt;&lt;/em&gt;&lt;span style="color:#0000ff;"&gt;.com.                           &lt;/span&gt;&lt;em&gt;&lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;Games&lt;/span&gt;&lt;/a&gt;&lt;/em&gt;&lt;span style="color:#0000ff;"&gt;.com                            has free online &lt;em&gt;games&lt;/em&gt; and download &lt;em&gt;games&lt;/em&gt;                            of every kind. &lt;/span&gt;                           &lt;a href="http://www.baggygames.com/games/"&gt;                           &lt;span style="color:#0000ff;"&gt;Play&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#0000ff;"&gt;                            puzzle &lt;em&gt;games&lt;/em&gt;, arcade &lt;em&gt;games&lt;/em&gt;, casino                           &lt;em&gt;games&lt;/em&gt;, ...&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;b&gt;&lt;span style="font-size:100%;"&gt;                            &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;                           &lt;p align="left"&gt; &lt;/p&gt;                       &lt;p align="center"&gt;                       &lt;a href="http://www.baggygames.com/games/" style="text-decoration: none; font-weight: 700;"&gt;                       &lt;span style="font-size:6;color:#ce0000;"&gt;Play Free Online Games&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;                       &lt;p align="center"&gt; &lt;/p&gt;                       &lt;p align="center"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;                       &lt;a href="http://www.baggygames.com/forum/" style="text-decoration: none;"&gt;                       &lt;span style="color:#ce0000;"&gt;Games Forum&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;                       &lt;p align="center"&gt;&lt;span style="font-size:6;color:#ce0000;"&gt; &lt;/span&gt;&lt;/p&gt;                       &lt;p align="center"&gt;&lt;span style="font-size:6;"&gt;&lt;b&gt;                       &lt;a href="http://www.baggygames.com/data/" style="text-decoration: none;"&gt;                       &lt;span style="color:#ce0000;"&gt;Magazine Games&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;                           &lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-6309741408772121141?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/6309741408772121141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/06/play-free-online-games.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6309741408772121141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6309741408772121141'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/06/play-free-online-games.html' title='Play Free Online Games   www.baggygames.com/games   العاب فلاش العاب جدة بايكرز موقع العاب جديدة او'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-5746422838003150867</id><published>2009-03-16T12:04:00.002-07:00</published><updated>2009-03-16T12:05:10.814-07:00</updated><title type='text'>Create a text file called test.txt</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;Create a text file called test.txt&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim objFSO, objFile&lt;br /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set objFile = objFSO.CreateTextFile("d:\test.txt", True)&lt;br /&gt;objFile.WriteLine("This is a test.")&lt;br /&gt;objFile.Close&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-5746422838003150867?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/5746422838003150867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/create-text-file-called-testtxt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/5746422838003150867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/5746422838003150867'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/create-text-file-called-testtxt.html' title='Create a text file called test.txt'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-8606452012811486480</id><published>2009-03-16T12:04:00.001-07:00</published><updated>2009-03-16T12:04:49.794-07:00</updated><title type='text'>creates a folder called New Folder1</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;creates a folder called New Folder1&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim fso&lt;br /&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;fso.CreateFolder("d:\New Folder1")&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-8606452012811486480?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/8606452012811486480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/creates-folder-called-new-folder1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/8606452012811486480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/8606452012811486480'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/creates-folder-called-new-folder1.html' title='creates a folder called New Folder1'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-6627751750018318876</id><published>2009-03-16T12:03:00.000-07:00</published><updated>2009-03-16T12:04:13.074-07:00</updated><title type='text'>Count words in a sentence</title><content type='html'>Count words in a sentence&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;'the string to check&lt;br /&gt;strText = "This is our sample text for this example"&lt;br /&gt;'split the strText&lt;br /&gt;arrText = Split(strText ," ")&lt;br /&gt;'store the amount of words into intWords&lt;br /&gt;intWords = Ubound(arrText )&lt;br /&gt;'display how many words are in the sentence&lt;br /&gt;Response.Write "There are " &amp;amp; intWords &amp;amp; " words in " &amp;amp; strText&lt;br /&gt;%&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-6627751750018318876?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/6627751750018318876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/count-words-in-sentence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6627751750018318876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6627751750018318876'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/count-words-in-sentence.html' title='Count words in a sentence'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-1286478784783793772</id><published>2009-03-16T12:02:00.002-07:00</published><updated>2009-03-16T12:03:52.088-07:00</updated><title type='text'>This copies a folder called mydata to backupdata</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;This copies a folder called mydata to backupdata&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim objFSO, objFile&lt;br /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;objFSO.CopyFolder "c:\mydata", "c:\backupdata"&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-1286478784783793772?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/1286478784783793772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/this-copies-folder-called-mydata-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1286478784783793772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1286478784783793772'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/this-copies-folder-called-mydata-to.html' title='This copies a folder called mydata to backupdata'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-7461306501596523826</id><published>2009-03-16T12:02:00.001-07:00</published><updated>2009-03-16T12:02:42.902-07:00</updated><title type='text'>This copies a file called test.txt to test2.txt</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;This copies a file called test.txt to test2.txt&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim objFSO, objFile&lt;br /&gt;Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;Set objFile = objFSO.CreateTextFile("d:\test.txt", True)&lt;br /&gt;objFile.WriteLine("This is a test.")&lt;br /&gt;objFile.Close&lt;br /&gt;Set objFile = objFSO.GetFile("d:\test.txt")&lt;br /&gt;objFile.Copy ("d:\test2.txt")&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-7461306501596523826?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/7461306501596523826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/this-copies-file-called-testtxt-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/7461306501596523826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/7461306501596523826'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/this-copies-file-called-testtxt-to.html' title='This copies a file called test.txt to test2.txt'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-633469171323707719</id><published>2009-03-16T12:01:00.002-07:00</published><updated>2009-03-16T12:02:07.255-07:00</updated><title type='text'>Compare 2 strings using strComp</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;Compare 2 strings using strComp&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim strText1 , strText2&lt;br /&gt;'our text strings&lt;br /&gt;strText1 = "this is string 1"&lt;br /&gt;strText2 = "this is string 2"&lt;br /&gt;'compare the two strings and store in intResult&lt;br /&gt;intResult = strComp(strText1 , strText2)&lt;br /&gt;'if strings are identical the display this message&lt;br /&gt;If intResult = 0 Then&lt;br /&gt;Response.Write "Strings are identical"&lt;br /&gt;'if strings are different then display this message&lt;br /&gt;Else&lt;br /&gt;Response.Write "strings are different"&lt;br /&gt;End if&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-633469171323707719?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/633469171323707719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/compare-2-strings-using-strcomp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/633469171323707719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/633469171323707719'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/compare-2-strings-using-strcomp.html' title='Compare 2 strings using strComp'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-7193202760865359703</id><published>2009-03-16T12:01:00.001-07:00</published><updated>2009-03-16T12:01:38.200-07:00</updated><title type='text'>Check email address using Regular expressions</title><content type='html'>&lt;div style="text-align: right;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="rtl" style="text-align: right;"&gt;Check email address using Regular expressions&lt;br /&gt;&lt;br /&gt;&lt;% 'our function to check email addresses  'a fantastic list of regular expressions Function CheckMail(strEmail) 'our variables Dim objRegExp , blnValid 'create a new instance of the RegExp object , note we do not need Server.CreateObject("") Set objRegExp = New RegExp 'this is our pattern we check . objRegExp.Pattern = "^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" 'store the result either true or false in blnValid blnValid = objRegExp.Test(strEmail) If blnValid Then 'display this if it is a vlid email address Response.Write "This is a valid email address&lt;br /&gt;"&lt;br /&gt;Else&lt;br /&gt;'display this if it is an invalid email address&lt;br /&gt;Response.Write "That email address is invalid&lt;br /&gt;"&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;%&gt;&lt;br /&gt;&lt;%CheckMail("validmail@email.com") 'correct email address %&gt;&lt;br /&gt;&lt;%CheckMail("invalid1") 'incorrect , many errors%&gt;&lt;br /&gt;&lt;%CheckMail("invalid+email.com") 'invalid + sign instead of @%&gt;&lt;br /&gt;&lt;%CheckMail("invalid@email,com") 'invalid , sneaky uses a comma instead of a full stop%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-7193202760865359703?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/7193202760865359703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/check-email-address-using-regular.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/7193202760865359703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/7193202760865359703'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/check-email-address-using-regular.html' title='Check email address using Regular expressions'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-6933877847227015804</id><published>2009-03-16T12:00:00.002-07:00</published><updated>2009-03-16T12:01:03.367-07:00</updated><title type='text'>get the character for a specified character code using the Chr function</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;get the character for a specified character code using the Chr function&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;Dim intCharacter1 , intCharacter2&lt;br /&gt;intCharacter1 = "86"&lt;br /&gt;intCharacter2 = "64"&lt;br /&gt;Response.Write "The character for 86 is " &amp;amp; Chr(intCharacter1)&lt;br /&gt;Response.Write "The character for 64 is " &amp;amp; Chr(intCharacter2)&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-6933877847227015804?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/6933877847227015804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/get-character-for-specified-character.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6933877847227015804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/6933877847227015804'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/get-character-for-specified-character.html' title='get the character for a specified character code using the Chr function'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-9118369899814614904</id><published>2009-03-16T12:00:00.001-07:00</published><updated>2009-03-16T12:00:37.461-07:00</updated><title type='text'>A CDonts example to send an email</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;A CDonts example to send an email&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;set objMail=Server.CreateObject("CDONTS.NewMail")&lt;br /&gt;objMail.To="sample@emailaddress.com"&lt;br /&gt;objMail.From="from@otheremail.com"&lt;br /&gt;objMail.Subject="Place the subject here"&lt;br /&gt;objMail.Body="Place body text here"&lt;br /&gt;objMail.Send&lt;br /&gt;set objMail=Nothing&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-9118369899814614904?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/9118369899814614904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/cdonts-example-to-send-email.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/9118369899814614904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/9118369899814614904'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/cdonts-example-to-send-email.html' title='A CDonts example to send an email'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-4822016131810390522</id><published>2009-03-16T11:59:00.002-07:00</published><updated>2009-03-16T12:00:15.195-07:00</updated><title type='text'>Block more than one IP address</title><content type='html'>&lt;div style="text-align: right;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="rtl" style="text-align: right;"&gt;Block more than one IP address&lt;br /&gt;&lt;br /&gt;&lt;% 'declare our variables Dim strIP Dim intBanned Dim arrIP(1) 'these are our blocked IP addresses arrIP(0) = "127.0.0.01" arrIP(1) = "100.45.76.80" 'get the users IP address strIP = Request.ServerVariables("LOCAL_ADDR") intBanned = 1 'loop through the banned IP addresses For i = 0 to intBanned 'display a message and stop processing the page If strIP = arrIP(intBanned) Then Response.Write "You are blocked from this site" Response.End End If Next 'a welcome message if IP is OK response.Wr  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-4822016131810390522?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/4822016131810390522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/block-more-than-one-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/4822016131810390522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/4822016131810390522'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/block-more-than-one-ip-address.html' title='Block more than one IP address'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-1681462671931620285</id><published>2009-03-16T11:59:00.001-07:00</published><updated>2009-03-16T11:59:41.767-07:00</updated><title type='text'>Ban a user based on IP address</title><content type='html'>&lt;div dir="rtl" style="text-align: right;"&gt;Ban a user based on IP address&lt;br /&gt;&lt;br /&gt;&lt;%&lt;br /&gt;'variables to store banned IP and the users IP&lt;br /&gt;Dim strIP , strBannedIP&lt;br /&gt;'this is the banned IP address&lt;br /&gt;strBannedIP = "127.0.0.1"&lt;br /&gt;'get the users IP address&lt;br /&gt;strIP = Request.ServerVariables("LOCAL_ADDR")&lt;br /&gt;'if users address is the same as the banned IP address&lt;br /&gt;'display a message&lt;br /&gt;If strBannedIP = strIP Then&lt;br /&gt;Response.Write "You are not permitted to view this website"&lt;br /&gt;'if usersa ddress is different welcome message is displayed&lt;br /&gt;Else&lt;br /&gt;Response.Write "welcome"&lt;br /&gt;End If&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-1681462671931620285?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/1681462671931620285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/ban-user-based-on-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1681462671931620285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1681462671931620285'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/ban-user-based-on-ip-address.html' title='Ban a user based on IP address'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-3442368011766494917</id><published>2009-03-16T11:57:00.000-07:00</published><updated>2009-03-16T11:59:07.619-07:00</updated><title type='text'>Ban a user based on their IP address</title><content type='html'>&lt;div style="text-align: right;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="rtl" style="text-align: right;"&gt;Ban a user based on their IP address&lt;br /&gt;&lt;br /&gt;&lt;% Dim bannedIP = Request.ServerVariables("REMOTE_ADDR") 'this is the IP to ban here If bannedIP = "100.100.100.100" Then Response.Redirect ("banned.php") End If %&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-3442368011766494917?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/3442368011766494917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/ban-user-based-on-their-ip-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/3442368011766494917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/3442368011766494917'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/ban-user-based-on-their-ip-address.html' title='Ban a user based on their IP address'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-8766825056997168266</id><published>2009-03-16T11:55:00.000-07:00</published><updated>2009-03-16T11:57:18.621-07:00</updated><title type='text'>Code Snippets sample source codes</title><content type='html'>&lt;div style="text-align: right;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div dir="rtl" style="text-align: right;"&gt;Get the ansi value of a character&lt;br /&gt;&lt;br /&gt;&lt;% Dim strChar1 , strChar2 strChar1 = "a" strChar2 = "A" Response.Write "The ansi value of a is " &amp;amp; Asc(strChar1) &amp;amp; "&lt;br /&gt;"&lt;br /&gt;Response.Write "The ansi value of A is " &amp;amp; Asc(strChar2) &amp;amp; "&lt;br /&gt;"&lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-8766825056997168266?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/8766825056997168266/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/code-snippets-sample-source-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/8766825056997168266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/8766825056997168266'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/code-snippets-sample-source-codes.html' title='Code Snippets sample source codes'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6210180776285544508.post-1383363969378267319</id><published>2009-03-16T11:50:00.000-07:00</published><updated>2009-03-16T11:55:42.509-07:00</updated><title type='text'>ActiveX sample source codes</title><content type='html'>&lt;br /&gt;&lt;div style="text-align: right;"&gt;Another month, day, year dropdown creator&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;script language="javascript"&gt;&lt;br /&gt;function fnSubmit(strPage)&lt;br /&gt;{&lt;br /&gt;  document.forms[0].action= strPage&lt;br /&gt;  document.forms[0].submit()   &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;%  'here is the call writedropdowns  ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Sub writeDropDowns()   Dim strSelfLink   strSelfLink = request.servervariables("SCRIPT_NAME")   response.Write "&lt;form name="dates" method="post"&gt;" &amp;amp; vbcrlf&lt;br /&gt; response.Write MonthDropDown("month1",False,request("month1"),strSelfLink) &amp;amp; " " &amp;amp; DayDropDown("day1", "",getDaysInMonth(request("month1"),request("year1")),request("day1")) &amp;amp; " " &amp;amp; YearDropDown("year1","","", request("year1"),strSelfLink) &amp;amp; vbcrlf&lt;br /&gt; response.Write "&lt;/form&gt;"    &amp;amp; vbcrlf&lt;br /&gt;End Sub&lt;br /&gt;     &lt;br /&gt;'MonthDropDown&lt;br /&gt;'strName = name of drop down&lt;br /&gt;'blnNum = 'If blnNUM Is True, Then show As numbers&lt;br /&gt;'strSelected = the currenct selected month&lt;br /&gt;'strSelfLink = link to current page&lt;br /&gt;Function MonthDropDown(strName, blnNum, strSelected, strSelfLink)&lt;br /&gt; Dim strTemp, i, strSelectedString          &lt;br /&gt; strTemp = "&lt;select name="'" onchange="'javascript:"&gt;    &lt;option value="'"&gt;" &amp;amp; "Month" &amp;amp; "&lt;/option&gt;                                             &lt;option value="'"&gt;" &amp;amp; i &amp;amp; "&lt;/option&gt;          &lt;option value="'"&gt;" &amp;amp; MonthName(i) &amp;amp; "&lt;/option&gt;          &lt;/select&gt;" &amp;amp; vbcrlf  &lt;br /&gt; MonthDropDown = strTemp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'YearDropDown&lt;br /&gt;'strName = name of dropdown&lt;br /&gt;'intStartYear = year to start options list&lt;br /&gt;'intEndYear = year to end options list&lt;br /&gt;'strSelected = the currenct selected year&lt;br /&gt;'strSelfLink = link To currentpage&lt;br /&gt;Function YearDropDown(strName, intStartYear, intEndYear, strSelected, strSelfLink)&lt;br /&gt;&lt;br /&gt; Dim strTemp, i, strSelectedString  &lt;br /&gt;&lt;br /&gt; If intStartYear = "" Then&lt;br /&gt;   intStartYear = Year(now())&lt;br /&gt; End If  &lt;br /&gt; &lt;br /&gt; If intEndYear = "" Then&lt;br /&gt;   intEndYear = Year(now()) + 9&lt;br /&gt; End If&lt;br /&gt; &lt;br /&gt; strTemp = "&lt;select name="'" onchange="'javascript:"&gt;    &lt;option value="'"&gt;" &amp;amp; "Year" &amp;amp; "&lt;/option&gt;                                &lt;option value="'"&gt;" &amp;amp; i &amp;amp; "&lt;/option&gt;        &lt;/select&gt;" &amp;amp; vbcrlf  &lt;br /&gt;  YearDropDown = strTemp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'DayDropDown&lt;br /&gt;'strName = name of drop down&lt;br /&gt;'intStartDay = day to start with&lt;br /&gt;'intEndDay = day to end with&lt;br /&gt;'strSelected = current slected day&lt;br /&gt;Function DayDropDown(strName, intStartDay, intEndDay, strSelected )&lt;br /&gt;   Dim strTemp, i, strSelectedString  &lt;br /&gt;   If intStartDay = "" Then&lt;br /&gt;     intStartDay = 1&lt;br /&gt;   End If  &lt;br /&gt; &lt;br /&gt;   If intEndDay = "" Then&lt;br /&gt;     intEndDay = getDaysInMonth(Month(now()),Year(now()))&lt;br /&gt;   End If&lt;br /&gt; &lt;br /&gt;   strTemp = "&lt;select name="'"&gt;      &lt;option value="'"&gt;" &amp;amp; "Day" &amp;amp; "&lt;/option&gt;                                              &lt;option value="'"&gt;" &amp;amp; i &amp;amp; "&lt;/option&gt;          &lt;/select&gt;" &amp;amp; vbcrlf  &lt;br /&gt;   DayDropDown = strTemp&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;'getDaysInMonth&lt;br /&gt;'strMonth = month as number&lt;br /&gt;'strYear = year&lt;br /&gt;Function getDaysInMonth(strMonth,strYear)&lt;br /&gt;       Dim strDays   &lt;br /&gt;   Select Case CInt(strMonth)&lt;br /&gt;       Case 1,3,5,7,8,10,12:&lt;br /&gt;       strDays = 31&lt;br /&gt;       Case 4,6,9,11:&lt;br /&gt;          strDays = 30&lt;br /&gt;       Case 2:&lt;br /&gt;       If  ( (CInt(strYear) Mod 4 = 0  And  CInt(strYear) Mod 100 &lt;&gt; 0)  Or ( CInt(strYear) Mod 400 = 0) ) Then&lt;br /&gt;         strDays = 29&lt;br /&gt;       Else&lt;br /&gt;         strDays = 28&lt;br /&gt;       End If  &lt;br /&gt;       'Case Else:&lt;br /&gt;   End Select&lt;br /&gt;     &lt;br /&gt;   getDaysInMonth = strDays&lt;br /&gt;End Function  &lt;br /&gt;%&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6210180776285544508-1383363969378267319?l=happycodings.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://happycodings.blogspot.com/feeds/1383363969378267319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://happycodings.blogspot.com/2009/03/activex-sample-source-codes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1383363969378267319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6210180776285544508/posts/default/1383363969378267319'/><link rel='alternate' type='text/html' href='http://happycodings.blogspot.com/2009/03/activex-sample-source-codes.html' title='ActiveX sample source codes'/><author><name>Ali Abdelrazik</name><uri>http://www.blogger.com/profile/04804428428537552460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_SIw6QQE5Wzs/S86_ySBwSwI/AAAAAAAAAk0/B3XVkLDrVVA/S220/%D9%A2%D9%A0%D9%A1%D9%A0%D9%A0%D9%A4%D9%A1%D9%A3%D9%A3%D9%A6%D9%A1+%5B320x200%5D.jpg'/></author><thr:total>0</thr:total></entry></feed>
