computer

Subdecks (1)

Cards (31)

  • Types Of Function
    • Abs
    • Exp
    • Log
    • Fix
    • Rnd
    • Round
    • Sqrt
  • AbsMath.Abs(Number)
    Returns the absolute value of a number
  • Exp Math.Exp(Number)
    Returns exponential value of a given number
  • Log Math.Log(Number)
    Returns the natural (base e) logarithm of a specified number or the logarithm of a specified number in a specified base
  • Fix Fix(Number)
    Shortens the decimal part of a positive number and returns the largest integer smaller than number
  • Rnd VBMath.Rnd()*Number
    Write code that involves chance and probability, and returns a random value between 0 and 1
  • Sqrt Math.Sqrt(Number)
    Returns the square root of a specified number
  • InputBox
    Displays a message box where user can input data
  • MsgBox
    Produces a pop-up message box and prompts the user to click on a command button before going to the next instruction
  • function
    • a block of organized. reusable code that is used to perform a sigle and related action.
    • provide better modularity for the application and a high degree of code reusing
    • enclosed by function and end function statements
    • performs a task and returns control to the calling code. when it returns control, it also returns a valuse to the calling code
  • date function
    reads the system clock and returns the current date as a string in the format MM/DD/YY. In VB.NET, there are also some date functions that are frequently used such as NOW and TODAY.
  • Now# function

    returns a date value containing the current date and time according to the system setting.
  • today# function

    returns a date value containing the current date only.
  • TimeOfDay# function

    returns a date value containing only the current time
  • strings function
    strings are not objects, so they do not have methods but there are a number of functions for string manipulation.
  • input or output function
    allow the system to handle input from the user and output that is resulted from the code
    • inputBox function
    • MsgBox Function