Managing Data in VB2012

We encounter many types of data in our daily life. For example, we need to handle data such as names, addresses, money, date, stock quotes, statistics and etc everyday. Similarly in Visual Basic 2012, we have to deal with all sorts of of data, some can be mathematically calculated while some are in the form of text or other forms. VB2012 divides data into different types so that it is easier to manage when we need to write the code involving those data.

To read on, refer to our newest lesson at:

http://www.vbtutor.net/index.php/visual-basic-2012-lesson-6-managing-data/

Creating Database Using Visual Data Manager in VB6

Visual Data Manager is a built-in tool in Visual Basic 6 to create database applications. You can use it to create and manage databases in VB6 IDE without having to use external database programs such as MS Access  FoxPro, Dbase and etc.

Following the link below to get step by step guide on how to create databases using Visual Data Manager:

http://www.vbtutor.net/index.php/creating-database-using-visual-data-manager/

Sample code for converting number systems

Here is a working sample code for converting decimal number system to hexadecimal number system and vice versa.

Private Sub cmdConvert_Click()
Dim decNumber As Double
Dim hexNumber As String
If Text1.Text <> “” Then
decNumber = Val(Text1.Text)
hexNumber = Hex(decNumber)
Text2.Text = hexNumber
Else
hexNumber = Text2.Text
decNumber = CInt(“&H” & hexNumber)
Text1.Text = decNumber

End If

End Sub

The interface is as follows: