Functional Operators
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Functional Operators
■ A function is used in an expression to call a predetermined operation to
be performed on an operand. For example, SQR is a function used twice in
the following assignment statement:
A = SQR (20.25) + SQR (37)
■ Visual Basic incorporates two kinds of functions:
• Intrinsic: many predefined functions are built into the language - for
example, the SQR (square root) and SIN (sine) functions.
• User-defined: you can define your own functions with the FUNCTION...END
FUNCTION construction or with the older, obsolete DEF FN...END DEF
construction. Unless they are in a Quick library, such functions are
defined only for the life of the program and are not part of the Visual
Basic language.
■ In addition to FUNCTION and DEF FN, Visual Basic allows you to define
subprograms with SUB.
See: ◄DEF FN Statement► ◄FUNCTION Statement► ◄SUB Statement►
See: ◄Expressions and Operators Summary►