operators and functions

Upload: anuj199

Post on 07-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Operators and Functions

    1/9

    AnshulNishant Jaryal

    COMPILEDBY:

  • 8/3/2019 Operators and Functions

    2/9

    arithmeticoperators

    comparisonoperator

    logicaloperator

  • 8/3/2019 Operators and Functions

    3/9

    OPERATOR OPERATION EXAMPLE

    + Addition If val1=23 and val2=20 Then

    Val1 + Val2 result into 43.

    - Subtraction If val1=15 and val2=5 Then

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

    Val1 * val2 result into 50.

    / Division If val1=45 and val2=5 Then

    Val1 / val2 result into 9.

    Mod Modules 7 Mod 2 = 1Val1 mod val2 = 2 if val1 =32 & val2

    = 5.

    ^ Exponentiation If val1= 7 ^ val2= 2 Then

    Result is 49.

  • 8/3/2019 Operators and Functions

    4/9

    Some prominent ones are:-

    *it is successor of BASIC language*VB supports event driven programming.*COMMON PROGAMMING PLATFORM-VB provides a commonprogramming platform across all ms-office applications.*QUICK DEVLOPMENT-VB offers many tools that provide a quick andeasy way to develop applications.

    *WIZARDS-VB also provides many wizards that can automate tasks oreven automate coding.*ACTIVEX supports- VB allows you to migrate applications (developedwith VB) to an ActiveX documents. An active document enables theapplication to install and run from a web browser such as MS Internetexplorer or Netscape navigator. Thus ,even if the developer does not

    know web languages like java or HTML, he/she can develop applicationsthat can be run from a web browser.

    *Quick error detection/correction-the VB development environmentprovides tools for quick editing, testing and debugging.

  • 8/3/2019 Operators and Functions

    5/9

    Visual basic was developed in 1990s by Microsoft Corporation.Visual basic is a window development language, which alsosupports event driven programming. Also coding is doneinteractively in visual basic.

    VB programming environment provides all features that arerequired to develop a graphical user interface as ready-to-usecomponents Visual basic 6.0 provides many powerful features.

  • 8/3/2019 Operators and Functions

    6/9

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

  • 8/3/2019 Operators and Functions

    7/9

    OPERATORS DESCRIPTION EXAMPLE RESULT

    > Greater than 10>8 True=10 True

  • 8/3/2019 Operators and Functions

    8/9

    OPERATORS FUNCTION EXAMPLE

    OR Returns trueif at leastone of the operandcondition is trueotherwisefalse.

    Val1 =300 AND Val2 < val1

    AND 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 Negates the result of a

    condition.

    NOT (Val1 = 500) is true as

    condition is false and NOT

    false is true

  • 8/3/2019 Operators and Functions

    9/9

    THANK

    YOU