<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-918704121759050647</atom:id><lastBuildDate>Sat, 14 Nov 2009 13:10:01 +0000</lastBuildDate><title>VB Egg - VB Classic, VB.NET &amp; VBx site</title><description>Your Ultimate Visual Basic 6, VB Classic, VB.NET and VBx information, guide and other resources site.</description><link>http://vbegg.blogspot.com/</link><managingEditor>noreply@blogger.com (Fluffy)</managingEditor><generator>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/vbegg" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-231809528759723927</guid><pubDate>Wed, 30 Sep 2009 11:05:00 +0000</pubDate><atom:updated>2009-09-30T04:27:19.887-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ccase</category><category domain="http://www.blogger.com/atom/ns#">vb.net camel case</category><title>VB.NET : Convert A Sentence Into Camel Case Format</title><description>&lt;strong&gt;Converting a sentence into CamelCase format in Microsoft VB.NET &amp;amp; ASP.NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Microsoft VB.NET, ASP.NET and C#.NET lacks the function to allow programmers to convert a string, or even a whole sentence into Camel Case format. Therefore, i have written a microsoft .net functions to do just that. This comes very handy especially in converting a list of names into Camel Case format, or converting a string of addresses and many other applications. You name it.  If you do not know what a Camel Case format look like, see the example below:&lt;br /&gt;&lt;br /&gt;For instance, we are going to convert the following files into Camel Case format.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim Sentence1 As String = "is john smith working in microsoft?"&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim Sentence2 As String = "michael t. ashby is a GREAT programmer. he is young."&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim Output1, Output2 As String&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Output1 = CCase(Sentence1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Output2 = CCase(Sentence2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The converted output will be&lt;br /&gt;Output1 :  "Is John Smith Working In Microsoft?"&lt;br /&gt;Output2 : "Michael T. Ashby Is A Great Programmer. He Is Young."&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Simply copy and paste the following codes below into your microsoft vb.net, asp.net programming code and you can use it right away.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Public Function CCase(ByVal iString As String) As String &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;'This function converts a string into "Camel Case" format&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim oString As String = "" 'initialise output string         &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim iLength As Integer = Len(iString) 'the length of input string         &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim P As Integer = 1 'set pointer to start at character 1        &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim iChar As String 'individual stripped character        &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim UpperFlag As Boolean 'flag to mark upper case is required or not&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;iString = LCase(iString) 'convert to lower case string&lt;br /&gt;While P &lt;= iLength ' while not end of the string (pointer)            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;    iChar = Mid(iString, P, 1) 'strip each character out of the string one by one&lt;br /&gt;    If P = 1 Then 'first character                &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;        UpperFlag = True 'change first character to upper case            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;    End If&lt;br /&gt;    If iChar = " " Or iChar = "-" Then 'blank field encountered.                &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;        UpperFlag = True 'raise the flag to mark the next character as upper case            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;    Else 'non-blank field encountered                &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;        If UpperFlag = True Then 'if the flag is raised                    &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;            iChar = UCase$(iChar) 'change the character to uppercase                    &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;            UpperFlag = False 'undo raising the flag                &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;        End If            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;    End If&lt;br /&gt;    oString &amp;amp;= iChar 'reassemble characters back into a string as output            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;    P += 1 'next pointer        &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;End While&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Return (oString) 'return the reassembled output string&lt;br /&gt;End Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-231809528759723927?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/a9vChqI9n3E-G-gVzy1l65_YfPc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a9vChqI9n3E-G-gVzy1l65_YfPc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/a9vChqI9n3E-G-gVzy1l65_YfPc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/a9vChqI9n3E-G-gVzy1l65_YfPc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/t4fnWoW1AOo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/t4fnWoW1AOo/vbnet-convert-sentence-into-camel-case.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/09/vbnet-convert-sentence-into-camel-case.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-4156007966084352329</guid><pubDate>Thu, 23 Apr 2009 12:10:00 +0000</pubDate><atom:updated>2009-04-23T05:18:21.948-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Math.ABS</category><category domain="http://www.blogger.com/atom/ns#">Add Project Reference VB.NET</category><title>VB.NET : Absolute Value (ABS)</title><description>&lt;strong&gt;Applying Absolute Value In VB.NET with ABS&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;VB.NET allows the conversion of figures (both positive and negative) into absolute figures easily. You can use the Mathematical Function as shown below&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Math.ABS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For example, to change a figure value of -34167 into absolute figures, we can apply the codes as follows :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim myValue as Integer&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;myValue = Math.ABS(-34167)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;MsgBox(myValue)   '&lt;/span&gt;&lt;span style="color:#000000;"&gt;The output now becomes 34167&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; That illustrates the use of the in-built Math.Abs function in VB.NET&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-4156007966084352329?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/m_dvzaKLO6p8-44eG655hnl3X40/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m_dvzaKLO6p8-44eG655hnl3X40/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/m_dvzaKLO6p8-44eG655hnl3X40/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/m_dvzaKLO6p8-44eG655hnl3X40/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/vKgWt89f0bk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/vKgWt89f0bk/vbnet-absolute-value-abs.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/04/vbnet-absolute-value-abs.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-6517063772040081922</guid><pubDate>Fri, 03 Apr 2009 15:53:00 +0000</pubDate><atom:updated>2009-04-03T09:05:45.759-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">sleep</category><title>VB.NET : Sleep</title><description>&lt;strong&gt;Putting application to sleep for a specified miliseconds in VB.NET&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In VB.NET, you can make an application idle ( or sleep ) for a specified miliseconds. For example, in your programming code, you might want to let your program to be idle for 500 miliseconds after executing a certain functions and then execute the next function.&lt;br /&gt;Apply the code below between functions:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;System.Threading.Thread.Sleep(500)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note : The number used is in miliseconds&lt;br /&gt; * 1 sec = 1000ms&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-6517063772040081922?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xm4qymvKpCkIqbFwbmpgfMrHxR8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xm4qymvKpCkIqbFwbmpgfMrHxR8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xm4qymvKpCkIqbFwbmpgfMrHxR8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xm4qymvKpCkIqbFwbmpgfMrHxR8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/8j5iZjimO3M" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/8j5iZjimO3M/vbnet-sleep.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/04/vbnet-sleep.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-4520389605226897712</guid><pubDate>Tue, 17 Mar 2009 11:59:00 +0000</pubDate><atom:updated>2009-03-17T05:31:21.408-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">SQL Server CE</category><title>VB.NET : Access to SQL Server Compact Edition</title><description>&lt;strong&gt;Accessing SQL Server Compact Edition Database using VB.NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SQL Server Compact Edition, or simply SQL Server CE, allows a very convenient way of fetching data stored locally as cache. It is usually used in situations where commonly used data are stored locally and accessed directly instead of making queries to fetch the data again and again from the main database server. Accessing data stored locally can be many times faster compared to accessing data stored in the main database located somewhere on the network. Hence, by implementing and taking the full advantage of SQL Server CE, you can make your application runs faster.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Firstly, add the following reference at the top of your module programming code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Imports System.Data.SqlServerCe&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next, add the following as global variables so that you can call them anytime, anywhere in your code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Friend SQLcommCE As SqlCeCommand&lt;/span&gt; 'SQL command&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Friend daCE As SqlCeDataAdapter&lt;/span&gt; 'SQL adapter&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Friend &lt;/span&gt;&lt;span style="color:#3333ff;"&gt;SQLConnCETempDB As SqlCeConnection&lt;/span&gt; 'SQL connection linking your local database&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then, add the following codes to establish the database connection to where your application loads when it runs. Data Source points to the path where your SQL Server CE database extension *.sdf is stored, and provides the password (if any) in the codes shown below. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SQLConnCETempDB = New SqlCeConnection("Data Source=C:\TempDB.sdf;Password='123'")&lt;br /&gt;SQLConnCETempDB.Open()&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;Finally, in the programming code where you want to perform query to the database, you can simply use the codes shown as follows. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim SQLStm as String &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SQLStm = "DELETE FROM LocalTable WHERE MYTABLE_ID = '123'"&lt;br /&gt;SQLcommCE = New SqlCeCommand(SQLStm, SQLConnCETempDB) &lt;span style="color:#000000;"&gt;'execute the query&lt;/span&gt;&lt;br /&gt;SQLcommCE.ExecuteNonQuery()  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;That will delete the records with MYTABLE_ID = '123' in your LocalTable.&lt;br /&gt;For INSERT INTO, UPDATE, DELETE or any other NonQuery database access, you can use&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;.ExecuteNonQuery &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you intend to query the table using the SELECT statement, you have to use the following code instead&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;.CommandType = CommandType.Text&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See the example below:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim SQLStm as String&lt;br /&gt;Dim ds as DataSet&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim Rank, Name as String&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SQLStm = "SELECT Rank, Name FROM LocalTable WHERE MYTABLE_ID = '123'"&lt;br /&gt;SQLcommCE = New SqlCeCommand(SQLStm, SQLConnCETempDB)&lt;/span&gt; 'SQL query&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SQLcommCE.CommandType = CommandType.Text &lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;daCE = New SqlCeDataAdapter(SQLcommCE)&lt;/span&gt; 'Retrieve data from SQL Server CE&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;ds = New DataSet&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;daCE.Fill(ds)&lt;/span&gt; 'Populate dataset with retrieved data.&lt;/p&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;If ds.Tables(0).Rows.Count &gt; 0 Then&lt;/span&gt; ' If record exists in LocalTable&lt;br /&gt;        &lt;span style="color:#3333ff;"&gt;Rank = ds.Tables(0).Rows(0).Item("Rank").ToString&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;        Name = ds.Tables(0).Rows(0).Item("Name").ToString&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Else&lt;/span&gt; 'record not exists in LocalTable&lt;br /&gt;     &lt;span style="color:#3333ff;"&gt;  Rank = ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;       Name = ""&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you can start implementing SQL Server CE in your applications&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-4520389605226897712?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/11fyE-egZ8CEzhHtosHBjpj_mJo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/11fyE-egZ8CEzhHtosHBjpj_mJo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/11fyE-egZ8CEzhHtosHBjpj_mJo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/11fyE-egZ8CEzhHtosHBjpj_mJo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/KDG7-YRQ16w" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/KDG7-YRQ16w/vbnet-access-to-sql-server-compact.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/03/vbnet-access-to-sql-server-compact.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-623658041298026821</guid><pubDate>Sun, 15 Feb 2009 14:24:00 +0000</pubDate><atom:updated>2009-02-15T06:24:00.433-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Advanced Mathematical Functions</category><title>VB.NET : Mathematical Functions (Advanced)</title><description>&lt;strong&gt;Using Advanced Mathematical Functions in VB.NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More advanced mathematical functions in VB.NET utilizes the System.Math class. This class supports a wide variety of in-built functions such as :&lt;br /&gt;&lt;br /&gt;Constants like &lt;strong&gt;&lt;em&gt;E &lt;/em&gt;&lt;/strong&gt;and &lt;strong&gt;Pi&lt;/strong&gt;&lt;br /&gt;Trigonometric functions like &lt;strong&gt;&lt;em&gt;Sin, Cos &lt;/em&gt;&lt;/strong&gt;&amp;amp;&lt;strong&gt;&lt;em&gt; Tan&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Logarithmic functions like &lt;em&gt;&lt;strong&gt;Log&lt;/strong&gt;&lt;/em&gt; &amp;amp; &lt;strong&gt;&lt;em&gt;Log10&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;and other functions like &lt;strong&gt;&lt;em&gt;Ceiling, Floor, Max, Min, Pow, Exp, Sqrt, Abs, Round&lt;/em&gt;&lt;/strong&gt; etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The example below shows how some of these advanced mathematical functions are used.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim i, j, k as Integer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i = Math.Sqrt(25)&lt;br /&gt;j = Math.Pow(2,5)&lt;br /&gt;k = Math.Abs(-25)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Msgbox(i) '--- result has a value of 5&lt;br /&gt;Msgbox(j) '--- result has a value of 32&lt;br /&gt;Msgbox(k) '--- result has a value of 25&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See also &lt;a href="http://vbegg.blogspot.com/2009/02/vbnet-mathematical-functions.html"&gt;Simple Mathematical Functions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-623658041298026821?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ruJvfw7AyJn9MjGURMz3_Q1EJ5o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ruJvfw7AyJn9MjGURMz3_Q1EJ5o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ruJvfw7AyJn9MjGURMz3_Q1EJ5o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ruJvfw7AyJn9MjGURMz3_Q1EJ5o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/1HlE-glStBQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/1HlE-glStBQ/vbnet-mathematical-functions-advanced.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/02/vbnet-mathematical-functions-advanced.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-6347189216941277966</guid><pubDate>Thu, 12 Feb 2009 14:13:00 +0000</pubDate><atom:updated>2009-02-12T06:36:23.387-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Simple Mathematical Functions</category><title>VB.NET : Mathematical Functions</title><description>Mathematical Functions in VB.NET&lt;br /&gt;&lt;br /&gt;VB.NET offers some very simple and useful mathematical functions for your programming needs; They include:&lt;br /&gt;&lt;br /&gt;"+" Add&lt;br /&gt;"-" Subtract&lt;br /&gt;"*" Multiply&lt;br /&gt;"/" Divide&lt;br /&gt;"\" Integer Division&lt;br /&gt;"^" Exponent&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code example below illustrates how these mathematical functions are performed in VB.NET.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim i, j, k as Integer&lt;br /&gt;&lt;br /&gt;i = 2 * 3&lt;br /&gt;j = 3 / 9&lt;br /&gt;k = 2 ^ 3&lt;br /&gt;&lt;br /&gt;Msgbox(i) '--- return a value of 6&lt;br /&gt;Msgbox(j) '--- return a value of 3&lt;br /&gt;Msgbox(k) '--- return a value of 8&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you should have understood the simple mathematical functions in VB.NET.&lt;br /&gt;&lt;br /&gt;See also &lt;a href="http://vbegg.blogspot.com/2009/02/vbnet-mathematical-functions-(advanced).html"&gt;Advanced Mathematical Functions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-6347189216941277966?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DTn0Or3Grh7i77mBZsP1LFXYyRM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DTn0Or3Grh7i77mBZsP1LFXYyRM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DTn0Or3Grh7i77mBZsP1LFXYyRM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DTn0Or3Grh7i77mBZsP1LFXYyRM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/y622tFxsXEg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/y622tFxsXEg/vbnet-mathematical-functions.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/02/vbnet-mathematical-functions.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-1974195246426284756</guid><pubDate>Fri, 06 Feb 2009 13:05:00 +0000</pubDate><atom:updated>2009-02-06T05:05:00.762-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Microsoft Enterprise Servers</category><title>Microsoft Enterprise Servers</title><description>&lt;p&gt;Microsoft Enterprise Servers that can be incorporated in system development.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;Microsoft SQL Server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft SQL Server include rich XML functionalites. It also enables the manipulating of XML data by using Transact-SQL (T-SQL). It has supports for Worldwide Web Consortium (W3C) and has a flexible and powerful web-based analysis feature. It provides a safe and secure way of accessing data in the SQL server over the web by using HTTP.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft BizTalk Server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft BizTalk Server provices enterprise application integration (EAI), business-to-business integration, and advanced BizTalk Ochestration Technology to build highly customized processes that can be implemented across applications, various platforms, and organizations over the Internet.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft Host Integration Server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft Host Integration Server is meant as a replacement for the SNA Server. It provides a solution to embrace the Internet, intranet, and client-server technologies through existing legacy system and infrastructure.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft Exchange Enterprise Server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft Exchange Enterprise Server is implemented as a powerful messaging and collaboration technology system with added various important features and provides commendable reliability, scalability and performance of its core infrastructure.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft Application Center&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft Application Center provides a tool as a way of deploying and managing for the high-availability of Web applications.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft Internet Security and Acceleration Server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Microsoft Internet Security and Acceleration Server is a feature that provides secure, fast and manageable Internet connectivity. It is built upon Windows Server's security and directory for policy based security, acceleration and management of inter-networking. It can be integrated with an extensible, multi-layer enterprise firewall and a scalable high-performance Web cache.&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Microsoft Commerce Server&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;Microsoft Commerce Server's main feature is to provide an application framework, sophisticated feedback mechanism and analytical capabilities for system integrations.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-1974195246426284756?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MxudVzFXe18fox8-lJXxv219nW8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MxudVzFXe18fox8-lJXxv219nW8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MxudVzFXe18fox8-lJXxv219nW8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MxudVzFXe18fox8-lJXxv219nW8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/w2I2FBGhVjE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/w2I2FBGhVjE/microsoft-enterprise-servers.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/02/microsoft-enterprise-servers.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-5653666958131225537</guid><pubDate>Wed, 04 Feb 2009 13:04:00 +0000</pubDate><atom:updated>2009-02-04T05:04:00.995-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">What Is .NET platform</category><title>What is .NET platform?</title><description>.NET platform is a technology that is specially designed to transform the Internet into a full-scale distributed computing platform, and also provides new ways to create applications from collections of Web Services. .NET platform is fully compatible and has support for a wide range of existing Internet infrastructures.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The main features of .NET platform are summarized as follows.&lt;br /&gt;&lt;br /&gt;1. It is a language-independent with consistent programming model across applications.&lt;br /&gt;2. Can be easily migrated from existing technologies and is fully compatible and interoperable between different technologies.&lt;br /&gt;3. supports Internet's platform-neutral, standard-based technologies such as HTTP, XML and SOAP technologies&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-5653666958131225537?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0Js5jMr42gaFNj8-ObfSPOSG5Lw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0Js5jMr42gaFNj8-ObfSPOSG5Lw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0Js5jMr42gaFNj8-ObfSPOSG5Lw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0Js5jMr42gaFNj8-ObfSPOSG5Lw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/VfpKH2a_LxE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/VfpKH2a_LxE/what-is-net-platform.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/02/what-is-net-platform.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-8580441807184696656</guid><pubDate>Mon, 02 Feb 2009 13:01:00 +0000</pubDate><atom:updated>2009-02-02T05:04:45.112-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.NET Platform Technologies</category><title>.NET Platform Technologies</title><description>&lt;strong&gt;The technologies of .NET platform&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;.NET platform is useful and very important in Web application developments because it provides the Web application developers with specialized tools and technologies to build distributed Web applications with ease.&lt;br /&gt;&lt;br /&gt;Basically, the .NET platform is made up of 4 core technologies, they are;&lt;br /&gt;1. &lt;em&gt;&lt;strong&gt;.NET framework&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;2. &lt;strong&gt;&lt;em&gt;.NET Building Block Services, &lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;3. &lt;em&gt;.&lt;strong&gt;NET Enterprise Servers&lt;/strong&gt;&lt;/em&gt;, and&lt;br /&gt;4. &lt;em&gt;&lt;strong&gt;Microsoft Visual Studio .NET&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;.NET Framework&lt;/strong&gt;&lt;br /&gt;&lt;/em&gt;&lt;br /&gt;The .NET framework is based on a new common language runtime. It is a runtime that is embedded in Visual Studio .NET and is language independent. That means, these common set of runtime services are used and shared by all .NET languages be it Microsoft Visual Basic, Visual C++ or other Microsoft programming languages. As such, an application developed in Visual Basic .NET does not need to distribute Visual Basic specific run-time libraries anymore. To simplify the application development further, all future Microsoft Windows will be equiped with these run-time libraries.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;.NET Building Block Services&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The .NET Building Block Services are distributed programmable services that are available whether online or offline. It is a building block service that can be used from any platform that supports SOAP technology such as identity, messaging, personalizations, calendar, search, notification and software delivery. It can be invoked through a stand-alone computer without Internet connection, provided a local server running inside a company, or accessed through the Internet.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;.NET Enterprise Servers&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;The .NET Enterprise Servers are server features that provide enhanced scalability, reliability, management and integration within and across organizations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Visual Studio .NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Visual Studio .NET or VS.NET is a high level programming development environment for building applications to take advantage of the .NET Framework. It provides the seamless technologies and tools to easily develop, deploy and enhance web applications and services through highly secure, scalable and advanced technologies and features. In addition, it also enables the development of new generation Windows-based applications to become possible through ulitizing .NET framework features.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-8580441807184696656?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IZnLCfArUFakeq23oxGMNiBI_MQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IZnLCfArUFakeq23oxGMNiBI_MQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IZnLCfArUFakeq23oxGMNiBI_MQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IZnLCfArUFakeq23oxGMNiBI_MQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/eyI9IowEW28" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/eyI9IowEW28/net-platform-technologies.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/02/net-platform-technologies.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-219122434339867241</guid><pubDate>Thu, 29 Jan 2009 11:59:00 +0000</pubDate><atom:updated>2009-01-29T03:59:00.884-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><category domain="http://www.blogger.com/atom/ns#">LCase Function</category><title>VB : LCase Function</title><description>&lt;strong&gt;Using LCase Function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;LCase&lt;/strong&gt; function is used to convert a string into lower case, therefore the name LCase. LCase can be used in your VB code as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myString As String '---Variable declaration&lt;br /&gt;&lt;br /&gt;myString = "My house is on FIRE!" '--- initialize string data&lt;br /&gt;myString = LCase(myString) '--- convert the string into lower case&lt;br /&gt;&lt;br /&gt;MsgBox(myString) '--- result will become "my house is on fire!".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LCase converts all the upper case letters into lower case while lower case letters will remain intact.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/vb-ucase-function.html"&gt;UCase Function&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-219122434339867241?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/O6tITEjXlVDa4g8YLcX-ilz_OIQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O6tITEjXlVDa4g8YLcX-ilz_OIQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/O6tITEjXlVDa4g8YLcX-ilz_OIQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O6tITEjXlVDa4g8YLcX-ilz_OIQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/timS5h9gB0I" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/timS5h9gB0I/vb-lcase-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-lcase-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-4616611053055691699</guid><pubDate>Thu, 29 Jan 2009 11:49:00 +0000</pubDate><atom:updated>2009-01-29T03:49:01.099-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">UCase function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : UCase Function</title><description>&lt;strong&gt;Using UCase Function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UCase&lt;/strong&gt; function is used to convert a string into UPPER CASE, hence the name &lt;strong&gt;UCase&lt;/strong&gt;. UCase can be applied in your VB programming codes as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myString As String '---Variable declaration&lt;br /&gt;&lt;br /&gt;myString = "My house is on FIRE!" '--- initialize string data&lt;br /&gt;myString = UCase(myString) '--- convert the string into UPPER CASE&lt;br /&gt;&lt;br /&gt;MsgBox(myString) '--- result is now "MY HOUSE IS ON FIRE"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;UCase&lt;/strong&gt; converts all the lower case letters into upper case while upper case letters will remain as it is.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/vb-lcase-function.html"&gt;LCase Function&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-4616611053055691699?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KpzV47J0r50FffvVpDOWTNr0KRg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KpzV47J0r50FffvVpDOWTNr0KRg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KpzV47J0r50FffvVpDOWTNr0KRg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KpzV47J0r50FffvVpDOWTNr0KRg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/gvZlDSVMS64" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/gvZlDSVMS64/vb-ucase-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-ucase-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-3385368584179434599</guid><pubDate>Wed, 28 Jan 2009 11:52:00 +0000</pubDate><atom:updated>2009-01-28T03:52:00.775-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">InStr</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : InStr Function</title><description>&lt;strong&gt;Using InStr Function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;InStr&lt;/strong&gt; in VB.NET / VB6 is a very powerful method to search for the occurance of certain character or word in a string. You can use the &lt;strong&gt;InStr&lt;/strong&gt; method in VB.NET / VB6 code as shown below. The result of using &lt;strong&gt;InStr&lt;/strong&gt; will be in Integer form displaying the position that the string you find occurs at. &lt;em&gt;myString&lt;/em&gt; is the string that you want to search against.&lt;em&gt; FindString&lt;/em&gt; is the character or word you are finding in &lt;em&gt;myString. OccurancePost&lt;/em&gt; is the position in which the finding is located.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;OccurancePost&lt;/em&gt; = InStr(&lt;em&gt;myString&lt;/em&gt;, &lt;em&gt;FindString&lt;/em&gt;)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The simple example illustrated below shows how &lt;strong&gt;InStr&lt;/strong&gt; method works in VB.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim OccurancePost As Integer '---Declare variables&lt;br /&gt;Dim myString, FindString As String&lt;br /&gt;&lt;br /&gt;myString = "Hello David! Welcome to the world" '--- the sentence&lt;br /&gt;FindString = "David" '----- data to look for in the sentence&lt;br /&gt;&lt;br /&gt;OccurancePost = Instr(myString, FindString) '--- InStr method&lt;br /&gt;&lt;br /&gt;MsgBox(OccurancePost) '--- the result will be 7.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;From the code above, we can see that the word &lt;em&gt;David&lt;/em&gt; occurs at the 7th letter from the left (position 7) in the sentence. However, if the word that you intend to find does not appear in the sentence, &lt;strong&gt;InStr &lt;/strong&gt;method will return a value of zero (0).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can include the following code to cater for the case as below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If OccurancePost = 0 Then&lt;br /&gt;MsgBox("The word that you intend to look for cannot be found")&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That briefly explains how&lt;strong&gt; InStr&lt;/strong&gt; works in VB.NET or VB6&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-3385368584179434599?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/M_uztn5Jz57ZXSdpooOWoXiMLaI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M_uztn5Jz57ZXSdpooOWoXiMLaI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/M_uztn5Jz57ZXSdpooOWoXiMLaI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/M_uztn5Jz57ZXSdpooOWoXiMLaI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/l-di-88Gtn8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/l-di-88Gtn8/vb-instr-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-instr-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-1095174211483934689</guid><pubDate>Tue, 27 Jan 2009 12:46:00 +0000</pubDate><atom:updated>2009-02-03T02:59:43.072-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Writing Multithreading Codes</category><title>VB.NET : Writing Multithreading Codes</title><description>&lt;strong&gt;Writing Multithreading codes in VB.NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Implementing multithreading to your application is in fact very easy and simple. We will go through the example below to understand how multithreading works. Firstly, before you do anything, you have to include the namespace below into your project. Add it at the top of your project module.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;Imports System.Threading.Thread&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Next, you will have to add a BackgroundWorker component from the toolbox into your project as show below. &lt;/p&gt;&lt;a href="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR4UiO50uI/AAAAAAAAAJE/4KTRa6jLf10/s1600-h/BackgroundWorker.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5292987756249207522" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 195px; CURSOR: hand; HEIGHT: 43px" alt="" src="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR4UiO50uI/AAAAAAAAAJE/4KTRa6jLf10/s320/BackgroundWorker.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Then, add the 4 controls as shown in the figure below into an empty form and name them as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;BtnMT, BtnNonMT, TextBox1, ProgressBar1&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR403FoPyI/AAAAAAAAAJM/fd36z-iyyOk/s1600-h/Multi-Threading.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5292988311603265314" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 355px; CURSOR: hand; HEIGHT: 130px" alt="" src="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR403FoPyI/AAAAAAAAAJM/fd36z-iyyOk/s320/Multi-Threading.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR403FoPyI/AAAAAAAAAJM/fd36z-iyyOk/s1600-h/Multi-Threading.jpg"&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;After that, add the following codes (Copy &amp;amp; Paste) into your project. &lt;/p&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Public Sub StartBackgroundWorker()&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;If BackgroundWorker1.IsBusy = True Then&lt;br /&gt;MsgBox("Process already running, please wait.", MsgBoxStyle.Information + MsgBoxStyle.OkOnly)&lt;br /&gt;Else&lt;br /&gt;BackgroundWorker1.WorkerSupportsCancellation = True&lt;br /&gt;BackgroundWorker1.RunWorkerAsync()&lt;br /&gt;End If&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;End Sub&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Protected Overridable Sub BackgroundWorkerJob_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = False &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;RunCount()&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Private Sub BackgroundWorkerJob_ProgressChanged(ByVal sender As System.Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChanged&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Me.Text = "Process is running, Please Wait!"&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Protected Overridable Sub BackgroundWorkerJob_RunWorkerCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.RunWorkerCompletedEventArgs) Handles BackgroundWorker1.RunWorkerCompleted&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;Me.Text = "Process Finished."&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Private Sub RunCount()&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Dim i As Integer&lt;br /&gt;For i = 1 To 100&lt;br /&gt;Sleep(500)&lt;br /&gt;TextBox1.text = i &amp;amp; "%"&lt;br /&gt;ProgressBar1.Value = i&lt;br /&gt;Next&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Finally, add this code behind BtnMT button&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Me.StartBackgroundWorker()&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;and this code behind BtnNonMT button&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;RunCount()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now, start the application and click on &lt;strong&gt;&lt;em&gt;MT&lt;/em&gt;&lt;/strong&gt; button. Notice the result in the diagram below. While the separate thread is running the lengthy process, the user interface shows the progress and the TextBox1 shows the percentages completed. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR7wOnTsoI/AAAAAAAAAJU/e6763_XLty8/s1600-h/With+Multi-Threading.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5292991530554077826" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 133px" alt="" src="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR7wOnTsoI/AAAAAAAAAJU/e6763_XLty8/s320/With+Multi-Threading.jpg" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Now, lets re-run the application and click on &lt;strong&gt;&lt;em&gt;Non MT&lt;/em&gt;&lt;/strong&gt; button this time. Both the lengthy process and the user-interface will be running under the same thread. See the result in the diagram below. Notice that without multithreading, the application stops responding after a while with the message showing Form1(Not Responding). Worst still, the application simply forgot to show the percentage completed in the TextBox1. Now, the user will have a hard time to know exactly when the process is going to finish.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://3.bp.blogspot.com/_amW2yEA9f5U/SXR8cCIIMbI/AAAAAAAAAJc/m7NQrO_IBCQ/s1600-h/Without+Multi-Threading.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5292992283116319154" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 320px; CURSOR: hand; HEIGHT: 132px" alt="" src="http://3.bp.blogspot.com/_amW2yEA9f5U/SXR8cCIIMbI/AAAAAAAAAJc/m7NQrO_IBCQ/s320/Without+Multi-Threading.jpg" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Hope this simple multithreading example that i have created above helps you understand and let you know the difference between multithreading and non-multithreading applications.&lt;/p&gt;&lt;p&gt;Back To &lt;a href="http://vbegg.blogspot.com/2009/01/vbnet-multi-threading.html"&gt;MultiThreading in VB.NET&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-1095174211483934689?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GTGti8nA44pKwk1veGk43hoot-A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GTGti8nA44pKwk1veGk43hoot-A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GTGti8nA44pKwk1veGk43hoot-A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GTGti8nA44pKwk1veGk43hoot-A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/9SVeTfTuWG8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/9SVeTfTuWG8/vbnet-writing-multithreading-codes.html</link><author>noreply@blogger.com (Fluffy)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_amW2yEA9f5U/SXR4UiO50uI/AAAAAAAAAJE/4KTRa6jLf10/s72-c/BackgroundWorker.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vbnet-writing-multithreading-codes.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-3310996324990826217</guid><pubDate>Tue, 27 Jan 2009 11:30:00 +0000</pubDate><atom:updated>2009-02-03T03:00:54.356-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Multi-Threading</category><title>VB.NET : MultiThreading</title><description>&lt;strong&gt;MultiThreading in VB.NET&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VB.NET has a very great feature called MultiThreading (MT) which is not available in classic VB. In the past, MultiThreading is only available and limited within C++ programming language development environment. Now with this great feature becoming part of VB.NET, you should fully utilize this feature as it allows you to separate your applications into multiple parts (threads), each handling different tasks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Advantages of MultiThreading&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The main advantage of multithreading is that it allows your application to work on many tasks at the same time. Sometimes it is also known that the application runs faster with multithreading as the time for each of the tasks is divided by the CPU and executed concurrently, thus greatly minimizes idle CPU time.&lt;br /&gt;&lt;br /&gt;Multithreading is mainly used in applications with lengthy processes which involves sophisticated calculations where the CPU is utilized intensively. Usually, this lengthy process is run on a separate thread from the graphical user interface as the user can still be able to work on this user interface while the lengthy process is running. Hence, the application will not look dead as the user interface is still responding to the user request.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;What happens if there is no MultiThreading&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Without multithreading where both the lengthy process and the user interface is running under the same thread, this is what will happen. As soon as the user clicks on the button in the user interface to start the lengthy process, the entire user interface freezes. After a while, a non-responding message for this process will occur in the title bar as well as in the task manager.&lt;br /&gt;Although the application is actually still running and the not responding message might not be true entirely, the user has to wait until the lengthy process finishes before the user interface comes back to life again. This also prohibits the user from using a progressbar in the application as it will not work since the user interface is already freezed. The user might not know or will not have any hints on when the lengthy process will finish.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Click the link below to see how you can implement Multithreading into your project.&lt;br /&gt;&lt;br /&gt;See &lt;a href="http://vbegg.blogspot.com/2009/01/vbnet-multithreading-codes"&gt;MultiThreading VB.NET sample codes&lt;/a&gt; here&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-3310996324990826217?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/69YGNBaJqiJfhmMFBWbcAwjvnls/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/69YGNBaJqiJfhmMFBWbcAwjvnls/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/69YGNBaJqiJfhmMFBWbcAwjvnls/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/69YGNBaJqiJfhmMFBWbcAwjvnls/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/T-4AJE3PrOA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/T-4AJE3PrOA/vbnet-multi-threading.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vbnet-multi-threading.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-977605650546576540</guid><pubDate>Mon, 26 Jan 2009 13:55:00 +0000</pubDate><atom:updated>2009-01-26T05:55:02.628-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><category domain="http://www.blogger.com/atom/ns#">Writing A Sub</category><title>VB : Subs</title><description>&lt;p&gt;&lt;strong&gt;Writing Subs In VB&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Sub procedures are basic programming blocks that are used to call another section of codes from virtually anywhere in the project. It allows code reuse without having to rewrite the codes again everytime that piece of codes need to be used. Unlike Functions procedures, Subs do not need to return a value to the caller. Everytime a Sub procedure is called from a line of code, The entire piece of code in the Sub will be executed until the end before proceeding to the next line of code.&lt;/p&gt;&lt;p&gt;The example below illustrates how a Sub Procedure works&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Public Sub DisplayMessage()&lt;/p&gt;&lt;p&gt;MsgBox("Hello, You Called Me")&lt;/p&gt;&lt;p&gt;End Sub&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;To call the DisplayMessage Sub procedure created above, just include a line as follows in your programming codes.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;DisplayMessage()&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;That explains how A Sub procedure works in Visual Basic.&lt;/p&gt;&lt;p&gt;See Also How To &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-functions.html"&gt;Write A Function&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-977605650546576540?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_2zcgY8Y9g4CGcWtLJxBwHfSluU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_2zcgY8Y9g4CGcWtLJxBwHfSluU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_2zcgY8Y9g4CGcWtLJxBwHfSluU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_2zcgY8Y9g4CGcWtLJxBwHfSluU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/MbFH32bi6oQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/MbFH32bi6oQ/vb-subs.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-subs.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-8880310088131502980</guid><pubDate>Sun, 25 Jan 2009 13:32:00 +0000</pubDate><atom:updated>2009-01-25T05:32:01.056-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Fahrenheit To Celcius Converter Function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : Fahrenheit To Celcius Converter Function</title><description>&lt;strong&gt;Fahrenheit To Celcius Converter Function In VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The VB codes below represents a Fahrenheit to Celcius converter function that you can use in your VB.NET or VB6 project.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function FahrenheitToCelcius(ByVal Fahrenheit As Double) As Double&lt;br /&gt;&lt;br /&gt;Dim Celcius As Double&lt;br /&gt;&lt;br /&gt;Celcius = (Fahrenheit -32) * (5/9)&lt;br /&gt;&lt;br /&gt;Return(Celcius)&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just copy the simple Fahrenheit To Celcius Converter Function above and paste it into your VB code to start converting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/visual-basic-fahrenheit-to-celcius-converter-function.html"&gt;Celcius To Fahrenheit Converter&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-8880310088131502980?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tXVbyPk9oZi16HJ1NprcgAhMaAg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tXVbyPk9oZi16HJ1NprcgAhMaAg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tXVbyPk9oZi16HJ1NprcgAhMaAg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tXVbyPk9oZi16HJ1NprcgAhMaAg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/XUUCiFmOyA4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/XUUCiFmOyA4/vb-fahrenheit-to-celcius-converter.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-fahrenheit-to-celcius-converter.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-2759521800612640999</guid><pubDate>Sun, 25 Jan 2009 13:23:00 +0000</pubDate><atom:updated>2009-01-25T05:23:00.934-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Celcius To Fahrenheit Converter Function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : Celcius To Fahrenheit Converter Function</title><description>&lt;strong&gt;Celcius To Fahrenheit Converter Function In VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Visual Basic codes below represents a Celcius to Fahrenheit converter function that you can use in your VB.NET or VB6 project.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function CelciusToFahrenheit(ByVal Celcius As Double) As Double&lt;br /&gt;&lt;br /&gt;Dim Fahrenheit As Double&lt;br /&gt;&lt;br /&gt;Fahrenheit = (Celcius * 9/5) +32&lt;br /&gt;&lt;br /&gt;Return(Fahrenheit)&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copy and paste the simple Celcius To Fahrenheit Converter Function above into your Visual Basic code and start converting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/visual-basic-celcius-to-fahrenheit-converter-function.html"&gt;Fahrenheit To Celcius Converter&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-2759521800612640999?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jUzs4DmZFIx2bQtB67rUBg91OgY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jUzs4DmZFIx2bQtB67rUBg91OgY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jUzs4DmZFIx2bQtB67rUBg91OgY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jUzs4DmZFIx2bQtB67rUBg91OgY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/IDC-MnvYrgQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/IDC-MnvYrgQ/vb-celcius-to-fahrenheit-converter.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-celcius-to-fahrenheit-converter.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-2544752170664245030</guid><pubDate>Sun, 25 Jan 2009 04:18:00 +0000</pubDate><atom:updated>2009-01-24T20:18:00.115-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Writing A Function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : Functions</title><description>&lt;strong&gt;Writing Functions in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Functions are very useful and convenient methods in programming. It is basically used to generate data by passing a data value into the function and then obtain a result from it. Like Sub procedure, a function is eclared with a Function keyword. See the example below on how to create a function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function Multiply(ByVal InputData As Double) As Double&lt;br /&gt;Dim OutputData As Double&lt;br /&gt;OutputData = InputData * 2&lt;br /&gt;Return(OutputData)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As can be seen in the example above, The function is a '&lt;em&gt;&lt;span style="color:#3366ff;"&gt;Public&lt;/span&gt;&lt;/em&gt;' declaration type which means this function can be access from anywhere in the project. For instance, if this function is specifically created for access from within this module only, '&lt;em&gt;Private&lt;/em&gt;' type will be used instead. The next item &lt;em&gt;&lt;span style="color:#3366ff;"&gt;Multiply&lt;/span&gt;&lt;/em&gt; is the name of this function. Further on, t&lt;em&gt;he &lt;span style="color:#3366ff;"&gt;ByVal InputData As Double&lt;/span&gt;&lt;/em&gt; section in the example above declares the input variable of this function. It is the entry point into the Function. The following &lt;em&gt;&lt;span style="color:#3366ff;"&gt;As Double&lt;/span&gt;&lt;/em&gt; at the end of the function procedure is the declaration of the output data type, that is, the data that the function ultimately returns to the caller. Notice that inside the function, a &lt;span style="color:#3366ff;"&gt;Return()&lt;/span&gt; call exists and this is necessary as it is the exit point leading the way out the function.&lt;br /&gt;&lt;br /&gt;Unlike Sub procedure which doesn't has an exit point, a function has at least an entry point and an exit point. If a function requires more than one input data, commas can be used to separate between the declaration of input data. See the second example illustrated below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function Multiply(ByVal InputData1 As Double, ByVal InputData2 As Double) As Double&lt;br /&gt;Dim OutputData As Double&lt;br /&gt;OutputData = InputData1 * InputData2&lt;br /&gt;Return(OutputData)&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To call the function above in your Visual Basic code, just add the following line as follows&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TextBox1.Text = Multiply( 54 , 3 )&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The value obtained in TextBox1.Text will be 162. Hence, that's how you can create functions in Visual Basic programming. It helps you better organize your programming code making it easier to read and best of all, Function can be reused again and again everywhere in your project.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;See a function example on &lt;a href="http://vbegg.blogspot.com/visual-basic-celcius-to-fahrenheit-converter-function.html"&gt;Fahrenheit To Celcius Converter&lt;/a&gt;&lt;br /&gt;and also &lt;a href="http://vbegg.blogspot.com/visual-basic-fahrenheit-to-celcius-converter-function.html"&gt;Celcius To Fahrenheit Converter&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-sub.html"&gt;Writing A Sub&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-2544752170664245030?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eyt70Ny9NtRk_6s0MuPoEbX718I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eyt70Ny9NtRk_6s0MuPoEbX718I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eyt70Ny9NtRk_6s0MuPoEbX718I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eyt70Ny9NtRk_6s0MuPoEbX718I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/1hVluWye0PA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/1hVluWye0PA/vb-functions.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-functions.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-2562688820982788211</guid><pubDate>Sat, 24 Jan 2009 07:03:00 +0000</pubDate><atom:updated>2009-01-23T23:03:00.483-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">CDec Function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : CDec Function</title><description>&lt;strong&gt;Using CDec Function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CDec&lt;/strong&gt; is used to convert data into Decimal data type. The example below briefly illustrates how &lt;strong&gt;CDec&lt;/strong&gt; function can be used in Visual Basic programming code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myData As Integer '--- Declare the variables&lt;br /&gt;Dim Output As Decimal&lt;br /&gt;&lt;br /&gt;myData = 79 '--- Initialize data value&lt;br /&gt;&lt;br /&gt;Output = CDec((myData - 32) * (7 / 3) * (5 / 9)) '---Convert data into Decimal data type&lt;br /&gt;&lt;br /&gt;MsgBox(Output) '-The output is 60.9259259259259&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As can be seen in the above example illustration, there is technically no difference between conversion of the data into either Decimal data type or Double data type. The only difference that both the data type Decimal and Double is that Decimal has its value fixed at a base of 10 whereas Double is a floating point number base of 2. That is, they differs only in the precisions &amp;amp; ranges of the value.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Function&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-2562688820982788211?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/YYiOMcPKfA6A9r5Do1Pc321O1qU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YYiOMcPKfA6A9r5Do1Pc321O1qU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/YYiOMcPKfA6A9r5Do1Pc321O1qU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/YYiOMcPKfA6A9r5Do1Pc321O1qU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/Lt2DS1-KKlw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/Lt2DS1-KKlw/vb-cdec-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-cdec-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-285311658254949085</guid><pubDate>Fri, 23 Jan 2009 13:51:00 +0000</pubDate><atom:updated>2009-01-23T05:51:00.693-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">Manual Data Conversion</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : CType Manual Data Conversion</title><description>&lt;strong&gt;Data Conversion in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To manually convert data in Visual basic, we can use the in-built function &lt;strong&gt;CType&lt;/strong&gt; to perform the task. &lt;strong&gt;CType&lt;/strong&gt; function is used to perform conversion of any value from one data type into another data type. However, if the value that you intend to convert into and the data type is outside of the value range allowed then an error might occur. The syntax for &lt;strong&gt;CType&lt;/strong&gt; is show as follows&lt;br /&gt;&lt;br /&gt;&lt;em&gt;CType(Expression, NameOfDataType)&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The &lt;em&gt;NameOfDataType&lt;/em&gt; can be any expression that is valid within &lt;em&gt;As&lt;/em&gt; clause in a &lt;em&gt;Dim s&lt;/em&gt;tatement, name of any datatype, class, object structure or even interface. The example below shows how &lt;strong&gt;CType&lt;/strong&gt; can be used in VB programming.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myString As String '--- Variable Declaration&lt;br /&gt;Dim myNumber As Integer&lt;br /&gt;&lt;br /&gt;myString ="5469"  '---Initialize string&lt;br /&gt;&lt;br /&gt;myNumber = CType(myString, &lt;em&gt;Integer&lt;/em&gt;)   '--- convert string to integer&lt;br /&gt;&lt;br /&gt;MsgBox(myNumber) '--- Result myNumber will be integer 5469&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CType&lt;/strong&gt; function is rather similar to the other functions used in VB6 like the ones listed below, These functions are used to convert data into the following data type as listed on the right side.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cbool-function.html"&gt;CBool - Boolean&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cbyte-function.html"&gt;CByte - Byte&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cchar-function.html"&gt;CChar - Char&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cdate-function.html"&gt;CDate - Date&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cdbl-function.html"&gt;CDbl - Double&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cdec-function.html"&gt;CDec - Decimal &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cint-function.html"&gt;CInt - Integer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-clng-function.html"&gt;CLng - Long&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-csng-function.html"&gt;CSng - Single&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-cstr-function.html"&gt;CStr - String&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hence, that shows how data conversion can be done manually by using &lt;strong&gt;CType&lt;/strong&gt; functions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-285311658254949085?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PqlxVJbJtRFA4Q29jVR9khQbQkA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PqlxVJbJtRFA4Q29jVR9khQbQkA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PqlxVJbJtRFA4Q29jVR9khQbQkA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PqlxVJbJtRFA4Q29jVR9khQbQkA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/G2kOtLMnyQM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/G2kOtLMnyQM/vb-ctype-manual-data-conversion.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-ctype-manual-data-conversion.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-5604159615482996567</guid><pubDate>Fri, 23 Jan 2009 04:10:00 +0000</pubDate><atom:updated>2009-01-22T20:10:01.141-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><category domain="http://www.blogger.com/atom/ns#">CStr Function</category><title>VB : CStr Function</title><description>&lt;strong&gt;Using CStr function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CStr&lt;/strong&gt; is a function that is used to convert data into the String data type. See the example below on how this &lt;strong&gt;CStr&lt;/strong&gt; function can be used in Visual Basic programming.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myData1 As Double '---Variable declaration&lt;br /&gt;Dim myData2 As Boolean&lt;br /&gt;Dim Output1, Output2 As String&lt;br /&gt;&lt;br /&gt;myData1 = 5469.2641 '---Initialization of data&lt;br /&gt;myData2 = False&lt;br /&gt;&lt;br /&gt;Output1 = CStr(myData1) '--- convert data into String data type&lt;br /&gt;Output2 = CStr(myData2)&lt;br /&gt;&lt;br /&gt;MsgBox(Output1) '---Output is '5469.2641'&lt;br /&gt;MsgBox(Output2) '---Output is 'False'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;However, if a Date value is converted, the result will always be in short date format. Also note that if a Null value is being converted, a run-time error might occur. Hope that helps you understand how &lt;strong&gt;CStr&lt;/strong&gt; function works and how you can apply it in your Visua Basic code.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Function&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-5604159615482996567?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fMubyWFKoOuM-_HPOBV1PwCPlGs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fMubyWFKoOuM-_HPOBV1PwCPlGs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fMubyWFKoOuM-_HPOBV1PwCPlGs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fMubyWFKoOuM-_HPOBV1PwCPlGs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/LS8WKOBjIag" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/LS8WKOBjIag/vb-cstr-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-cstr-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-2694977262485292279</guid><pubDate>Fri, 23 Jan 2009 03:50:00 +0000</pubDate><atom:updated>2009-01-22T19:50:00.590-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">CLng function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : CLng Function</title><description>&lt;strong&gt;Using CLng function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CLng&lt;/strong&gt; is a function that is used to convert data into Long data type. It is basically used to round figures with multiple decimal points. See the example shown below.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myData1, myData2 As Double '---Variable declaration&lt;br /&gt;Dim Output1, Output2 As Long&lt;br /&gt;&lt;br /&gt;myData1 = 5469.61 '---Initialization of data&lt;br /&gt;myData1 = 5469.48&lt;br /&gt;&lt;br /&gt;Output1 = CLng(myData1) '--- convert data into Long data type&lt;br /&gt;Output2 = CLng(myData2)&lt;br /&gt;&lt;br /&gt;MsgBox(Output1) '---Output is 5470&lt;br /&gt;MsgBox(Output2) '---Output is 5469&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;However, there is also one interesting thing to note that this &lt;strong&gt;CLng&lt;/strong&gt; function rounds figures to the nearest even number, that is (0,2,4,6,8) if the fraction part of a multi-decimal point figure is exactly 0.5. See the second example below to properly illustrate this special feature.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myData1, myData2 As Double '---Variable declaration&lt;br /&gt;Dim Output1, Output2 As Long&lt;br /&gt;&lt;br /&gt;myData1 = 5464.5 '---Initialization of data&lt;br /&gt;myData1 = 5475.5&lt;br /&gt;&lt;br /&gt;Output1 = CLng(myData1) '--- convert data into Long data type&lt;br /&gt;Output2 = CLng(myData2)&lt;br /&gt;&lt;br /&gt;MsgBox(Output1) '---Output is 5464&lt;br /&gt;MsgBox(Output2) '---Output is 5476&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that conversion of 5464.5 in Output1 becomes 5464 instead of 5465 because 5464 is the nearest even number whereas 5465 is an odd number. The same applies to Output2 as well. Therefore, that illustrates the concept of applying &lt;strong&gt;CLng&lt;/strong&gt; function into your VB programming code.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Function&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-2694977262485292279?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eiSO5r6ddY3lB9Aj315H-Hz01UU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eiSO5r6ddY3lB9Aj315H-Hz01UU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eiSO5r6ddY3lB9Aj315H-Hz01UU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eiSO5r6ddY3lB9Aj315H-Hz01UU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/SO4Yent5004" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/SO4Yent5004/vb-clng-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-clng-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-4091788288838648155</guid><pubDate>Thu, 22 Jan 2009 03:38:00 +0000</pubDate><atom:updated>2009-01-21T19:38:00.903-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CInt Function</category><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : CInt Function</title><description>&lt;strong&gt;Using CInt function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CInt&lt;/strong&gt; is a function that is used for converting data to Integer data type. It is normally used in circumstances where double-precision, single-precision, currency and other multi-decimal points figures occur. The simple example below shows how &lt;strong&gt;CInt &lt;/strong&gt;can be applied in Visual Basic codes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim myData As Double '-----Declaration of variable&lt;br /&gt;Dim Output As Integer&lt;br /&gt;&lt;br /&gt;myData= 5469.855 '----- Initialization of data&lt;br /&gt;&lt;br /&gt;Output = CInt(myData) '----convert myData into Integer&lt;br /&gt;&lt;br /&gt;MsgBox(Output) '----- output data is 5470&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hence, the result above shows the conversion from a Double data type into Integer Data type using &lt;strong&gt;CInt&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Functions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-4091788288838648155?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MVnfkuu5PXnRAC448c9aSO38XBY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MVnfkuu5PXnRAC448c9aSO38XBY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MVnfkuu5PXnRAC448c9aSO38XBY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MVnfkuu5PXnRAC448c9aSO38XBY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/mwdKvRyNJjc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/mwdKvRyNJjc/vb-cint-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-cint-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-7201146188250413529</guid><pubDate>Wed, 21 Jan 2009 15:29:00 +0000</pubDate><atom:updated>2009-01-21T07:29:03.429-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">CSng Function</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><title>VB : CSng Function</title><description>&lt;strong&gt;Using CSng function in VB&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CSng &lt;/strong&gt;is a function that is used to convert a data to Single data type. Unlike CDbl which forces double-precision, &lt;strong&gt;CSng&lt;/strong&gt; is only a single-precision data type. See the example shown below on how &lt;strong&gt;CSng&lt;/strong&gt; works.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim MyData1, MyData2 As Double '--- Declares Variable&lt;br /&gt;Dim Output1, Output2 As Single&lt;br /&gt;&lt;br /&gt;MyData1 = 43.982865935 '--- Initialize data&lt;br /&gt;MyData2 = 853719.4588613&lt;br /&gt;&lt;br /&gt;Output1 = CSng(MyData1) '--- Convert MyData1 into Single data type&lt;br /&gt;Output2 = CSng(MyData2) '--- Convert MyData1 into Single data type&lt;br /&gt;&lt;br /&gt;MsgBox(Output1) '--- Output1 is 43.98286&lt;br /&gt;MsgBox(Output2) '--- Output2 is 853719.4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As can be seen in the result above, only a fixed number of digits is shown in the output even though the original figures has more. Thus, that shows how &lt;strong&gt;CSng &lt;/strong&gt;is applied in Visual Basic programming.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Functions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-7201146188250413529?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/REepvlzUrSAIQW3yPoBN-686omo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REepvlzUrSAIQW3yPoBN-686omo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/REepvlzUrSAIQW3yPoBN-686omo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/REepvlzUrSAIQW3yPoBN-686omo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/CTXhgxBuHbc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/CTXhgxBuHbc/vb-csng-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-csng-function.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-918704121759050647.post-216442927289761407</guid><pubDate>Wed, 21 Jan 2009 15:12:00 +0000</pubDate><atom:updated>2009-01-21T07:12:00.135-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VB.NET</category><category domain="http://www.blogger.com/atom/ns#">VB6</category><category domain="http://www.blogger.com/atom/ns#">CDbl Function</category><title>VB : CDbl Function</title><description>&lt;strong&gt;Using CDbl Function in VB&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CDbl&lt;/strong&gt; function is used to convert a data into Double data type. See the simple example illustrated below for a better understanding of this &lt;strong&gt;CDbl &lt;/strong&gt;function. The example below converts a data stored in a textbox and convert it into Double data type.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim Output As Double '---- Declaring Variable&lt;br /&gt;&lt;br /&gt;TextBox1.Text = "234.456784" '--- Initialize the figure as a string stored in a textbox&lt;br /&gt;&lt;br /&gt;Output = CDbl(Val(TextBox1.Text) * 3.142 * 10/100) '- Run the formula of multiplying the figure with pi, and then multiply it again by 10%.&lt;br /&gt;&lt;br /&gt;MsgBox(Output) '-- The output retrieved will be 73.6663215328&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope you could now be able to know how you can use this &lt;strong&gt;CDbl&lt;/strong&gt; function and apply in your VB codes.&lt;br /&gt;&lt;br /&gt;See Also &lt;a href="http://vbegg.blogspot.com/2009/01/visual-basic-ctype-manual-data-conversion.html"&gt;CType Functions&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/918704121759050647-216442927289761407?l=vbegg.blogspot.com'/&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1p--sCkYDoWMVZqwtxeca7o0bc0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1p--sCkYDoWMVZqwtxeca7o0bc0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1p--sCkYDoWMVZqwtxeca7o0bc0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1p--sCkYDoWMVZqwtxeca7o0bc0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/vbegg/~4/gzUWZrn9zoI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/vbegg/~3/gzUWZrn9zoI/vb-cdbl-function.html</link><author>noreply@blogger.com (Fluffy)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://vbegg.blogspot.com/2009/01/vb-cdbl-function.html</feedburner:origLink></item></channel></rss>
