about-knowledge.com

rss

Fundamentals of VB 6.0 Programming and Programming to Display a String

without comments

Fundamentals of VB 6.0 Programming

VB 6.0 helps a programmer to develop and execute event driven programming applications without developing any additional programs, such as editor, compiler, interpreter, textbox, label box and command button. Programmers write codes against events. These events are called click event.

User controls the flow of events using an event driven programming application unlike the procedural programming applications where application controls the flow. For example, a user performs desired actions during browsing an Internet application. Internet programming languages also fall under the category of event driven programming.

Keyword ‘Dim’ is used to declare the variables using VB 6.0. Dim stands for dimension. Dim is used to specify the variable length. A variable name can be declared with a maximum length of 255 characters. It contains letters, underscores and numbers. Various data types are used to declare a variable, such as single, long, double and integer. Variable is a memory location used to store the values. The process of storing is called destructive read in if the new stored value into a variable replaced the previous value and non-destructive when a stored value is just read. Comments on coding are written by using a single quote ‘.

Programming to Display a String

A string is a sequence of characters used to display a message. It is written inside the double quotes "". There are many methods to display a string, such as using a function ‘print’, a label box and a message box. The syntaxes of these methods are shown below:

Using A Function ‘print’

Print "String Text"

Using A Label Box

Labell.caption = "String Text"

Using A Message Box

MsgBox "String Text"

Bookmark and Share

Related posts:

  1. Software Coding-Approaches of High Level Programming Languages (Part Three)-Event Driven Programming and Declarative Programming Event Driven Programming A programming language that responds to...
  2. Sequence Programming Using VB 6.0 Sequence is a method of writing programs in a particular...
  3. Menu Programming and Multiple Form Programming Using VB 6.0 Menu Programming Using VB 6.0 A menu is a collection...
  4. Software Coding-Approaches of High Level Programming Languages (Part One)-Structured Programming There are four main approaches followed to code a software...
  5. Selection Programming and Sub Procedure Programming Using VB 6.0 Selection Programming Using VB 6.0 Selection is a method of...

Written on

May 7th, 2009 at 1:25 am