Sunteți pe pagina 1din 9

COMPILEDBY:

Anshul
Nishant Jaryal

arithmetic operators

logical operator

comparison operator

OPERATOR + -

OPERATION Addition Subtraction

EXAMPLE If val1=23 and val2=20 Then Val1 + Val2 result into 43. If val1=15 and val2=5 Then Val1 - val2 result into 10.

*
/ Mod

Multiplication
Division Modules

If val1=10 and val2=5 Then Val1 * val2 result into 50.


If val1=45 and val2=5 Then Val1 / val2 result into 9. 7 Mod 2 = 1 Val1 mod val2 = 2 if val1 =32 & val2 = 5. If val1= 7 ^ val2= 2 Then Result is 49.

Exponentiation

Some prominent ones are:*it is successor of BASIC language *VB supports event driven programming. *COMMON PROGAMMING PLATFORM-VB provides a common programming platform across all ms-office applications. *QUICK DEVLOPMENT-VB offers many tools that provide a quick and easy way to develop applications. *WIZARDS-VB also provides many wizards that can automate tasks or even automate coding. *ACTIVEX supports- VB allows you to migrate applications (developed with VB) to an ActiveX documents. An active document enables the application to install and run from a web browser such as MS Internet explorer or Netscape navigator. Thus ,even if the developer does not know web languages like java or HTML, he/she can develop applications that can be run from a web browser. *Quick error detection/correction-the VB development environment provides tools for quick editing, testing and debugging.

Visual basic was developed in 1990s by Microsoft Corporation. Visual basic is a window development language, which also supports event driven programming. Also coding is done interactively in visual basic. VB programming environment provides all features that are required to develop a graphical user interface as ready-to-use components Visual basic 6.0 provides many powerful features.

Visual basic is one very powerful programming language that helps to develop sophisticated, graphical applications that can be run on Microsoft windows environment. Visual basic is actually BASIC language, which is visual in its nature. In general, Visual programming style involves a lot of illustration (graphic entities) rather than writing numerous lines of codes to describe the appearance, functioning etc of the applications interface.

OPERATORS

DESCRIPTION Greater than Less than

EXAMPLE 10>8 10<8

RESULT True False True True True False

> < >= <= <> =

Greater than or 20>=10 equal to Less than or equal to Not Equal to Equal to 10<=20 5<>4 5=7

OPERATORS OR

FUNCTION

EXAMPLE

Returns true if at least Val1 =300 AND Val2 < val1 one of the operand condition is true otherwise false. Operation will be true only if both the operands are true. Val1>=300 AND Val1 < Val2 returns true since both the operator conditions Val1>= 300 and val1 < val2 are true. NOT (Val1 = 500) is true as condition is false and NOT false is true

AND

NOT

Negates the result of a condition.

THANK YOU

S-ar putea să vă placă și