Expressions

An expression is a construction that returns a value. The following table shows examples of Delphi expressions:

X

variable

@X

address of the variable X

15

integer constant

InterestRate

variable

Calc(X, Y)

function call

X * Y

product of X and Y

Z / (1 - Z)

quotient of Z and (1 - Z)

X = 1.5

Boolean

C in Rangel

Boolean

not Done

negation of a Boolean

['a', 'b', '

c'] set

Char(48)

value typecast

The simplest expressions are variables and constants (described in Data types, variables, and constants). More complex expressions are built from simpler ones using operators, function calls, set constructors, indexes, and typecasts.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment