Languages

System

Application

Script

Database

HTML 4

DHTML

Technology

Client

Server

SB Tools

Protocols

SBuilder

 

Learning Basic & Visual Basic 

Basic Syntax
Visual Basic Sytax

The Data type: Integer, Long Integer, Real (Float), Double Real, String. Basic is a commandline or console input and output programming language.  Run the program from the commandline ie; from DOS Promt.

REM Filename square.bas
PRINT "Type a number"
INPUT A
PRINT A; " squared is "; A * A
END.

REM Filename hello.bas
PRINT "Hellow world"
END

REM Filename contan.bas
A$ = "TODAY IS "
B$ = "TUESDAY"
C$ = A$ + B$
PRINT C$

REM Filename Printsep.bas
REM The separator comma or semicolon
X = 3
A$ = "Columns"
B$ = "Fourteen wide"
PRINT X, X ^ 2
PRINT X ^ 3, X ^ 4
PRINT A$, A$
PRINT B$, B$
END

Rem is a comment line and rest is the code that Basic interpretes.  Difference between Basic and Visual Basic is that Visual Basic is designed for Windows GUI programming environment.   Visual Basic handles objects that have their own property, method and event.  There VB native objects and alien objects.

Visual Basic Syntax

Visual Basic has however coding convention derived from good old Basic it provides highly advanced Object Oriented programming language and tools.  Visual Basic allows programmers direct access to Windows properties, eventhandlers and controls.  With Visual Basic you can program any application for Windows.

Here's how Visual Basic allows programmer to use Windows controls:

Private Sub Form_Load()
   Lable1.Caption = "Todays is " & date
End Sub

Private Sub Form_Load()
   Dim nRandoma() As Integer
   Dim nLoopCounter As Integer
   Dim nArraySize As Integer

   Form1.show

   Randomize
   nArraySize = Int(Rnd(1) * 10)
   ReDim nRandoms(nArraySize)

   For nLoopCounter = 1 To nArraySize
   nRandoms(nLoopCounter)=Int(Rnd(1)*1000)
   Form1.Print "Element " & nLoopCounter & " = " & _
   nRandoms(nLoopCounter)
   Next
End sub

To learn more about it visit www.microsoft.com/vb/ There's a lot material free avialable on the Internet. You can also visit www.msdn.com/ which Microsoft's developers' network.  Visual Basic is the most popular language these day for Windows frontend application and ecommerce based websites.

    Visual Basic 6.0 Project has several modules such as Standard.exe, Activex.exe, Activex.dll, Activex Control, VB Wizard Manager, ADDIN, Activex Document dll, Activex Document exe, Data Project, DHTML Application, Internet Information Server (IIS) Application, VB Enterprise Control. These modules and controls have different use and produce different applications.

    You can actually specialize in Visual Basic. For example, you are interested and have gutt feeling to develop web application for ecommerce you can specialize on ADO/RDS object develolpment.  ADO (Active Data Object) provides direct access to any database with OLEDB technology and most of the IIS applications such as ASP (active server pages) have ADO technology deployed.

    Topic Because of Microsoft's advancement on Windows NT networking and operating system the Internet has now broader and user friendly environment to manage ecommerce.  Internet Information Server which is part of Windows NT server has much more automated build-in environment to manage the ecommerce with minimum programming.

The Internet technology is highly intergrated in terms of the client browser and  the company servers. Microsoft Internet Explorer 5.0 browser has become extremely compatible for all the advance languages and application that run on the Internet.  However, other browsers and servers are not compatible with some of the Microsoft technology for example RDS (Remote Data Services) component that is much faster and safe for the ecommerce.  Every other servers applications can be browsed with Internet Explorer 5.0.

Designed by
Prakash Bom