a.The language communicate between the media.
b.The programming language is that which can communicate between the machine and the user.
There are two types of programming language:-
This is the machine independent language. That means the program made by high level language is not directly understood by computer but through the interpreter and assembler.
High level language are :-Java,basic etc.
Basic language is that which are used in qbasic,microsoft access and visual basic ,using these language ,the programme are made.
2.Low level :-
Controls and objects:-
The Buttons, textbox, options button (radio button), dropdown list box, list box etc are the object (controls).They have the physical structure. They may have the properties and events. Objects can function on the event.
controls and properties:-
Properties are theirs attributes from the properties we can recognize the controls.
Button-type, name, values
Reset button-type, values
Text -type, name, size, max length
Check box-type, name
Radio button-type, name, value
Submit button-type, value
Events produced by controls:-
The event is the action done by controls or the controls can give some output on theirs’ events.
The some events used in webpage are given below:-
The block or working area or events’ instructing action block is the procedure. The procedure are two kinds:-
The sub procedure is that block which is used for common use.
Sub procedure’s block:-
The event procedure is made on the response of event that is used privately within the one block.
Private sub control_onevent()
Variable and variant:-
Variable are some alphabetical(string)character which are changeable during program execution.they are thought as the memory device those can store the input instruction for the value store and execution.
Variant also can store the value but they are private and takes the unexpected memory.
Variable are assigned as below:-
- For the declare or assign Dim keyword is used
- particular name is given
- name is in the string
- data type should be fixed
variable are declared in the following level:-
Private sub b1_onclick()
Dim [variablename] as data type
There is used many kinds of datas in computer like text,image,picute,number,music,video and songs.According to the use of data ,there are following types of data types:-
String-text or alphabetical characters and symbol aswell as number not for numeric calculation eg.a,b,c,1,2,#,% etc.It contains the memory 0 upto 255.
Integer-number for mathematical calculation eg.1,2,3 etc .It contains 0 to 32,768
Single-it accepts decimal and negative.It accepts millions of data.
Double-it also support decimal and negative .It has more than single memory.
Date and time-it is date and time containing data type.
Operators are the symbol or character for functioning particular actions.
There are following types of operators:-
- mathematical operators:-
- +-for addition.
- –for subtraction.
- *-for multiplications.
- /-for division.
- ^-for power calculation.
- Mod-for finding remainder.
- =-for showing equal to
- <>-not equal to
- >-to say greater than for compare.
- <-to say smaller than for compare.
- >=-to say greater than and equal to for compare.
- to say smaller than and equal to for compare.
·And-combine two true options.
·Or-select the true or false from two options.
Functionsare the set of action that can perform distinct task.
- string functions:-
·Len(string)-finds out length
·mid(string, start as long, length)-string from mid
·left(string, start as long)-strings from left
·right(string, start as long)-string from right
- Date and time:-
·Date-finds the current date
·Now-all date and time
·Hour(time)-hour from the current time
·Second(time)-second from the current time.
ØCint –change string into integer.
ØVal-change string into integer.
ØSqr-finds the square.
4.input and output function:-
There are two input and output functions they are called inputbox and msgbox.
Execute the input box where the user can input the value.
The information can be given or executed from the msgbox.
Button value and meaning:-
OK button only (default)
OK and Cancel buttons
Abort, Retry, and Ignore buttons
Yes, No, and Cancel buttons
Yes and No buttons
Adds Help button to the message box
Specifies the message box window as the foreground window
Text is right aligned
It is also used to display the information.
Openingand closing window:-
Window. open “page name.html”
Window. close “page name.html”
Writing in window:-
Programe flow control :-
Program ‘s flow is controlled using operator and function with the some construct.
Using if construct we can get the distinct decision with the operator.
For single condition:-
If [condition] then
For multiple condition :-
We use elseif for multiple condition instead of if constructs.
if [condition] then
elseif [condition] then
elseif [condition] then
Looping is used for the shortening the large coding .It works repeatedly until the given condition is satisfied.
There are different types of looping construct .
For [control variable]=[initial value] to [final value]
[executionand calculation statement]
Using visual basic script within html
You can write down the vbscript in notepad or in Frontpage’s codes.