Expressions, Data types, Expression type object – CUE Design Director Script Language User Manual

Page 6

Advertising
background image

Reference Manual Design Director Script Language

www.cuesystem.com

Page 6 of 94

2.3. Expressions

A term is a language construction, which describes the value calculation. Among expressions we
distinguish a distinctive type of expressions – Iexpressions. They are such expressions where it is
explicitly stated where the value comes from, that is where the value is stored i.e. the name of the
parameter.

These expressions can be consecutively used even for the place determination where the value of a
different term should be stored.

2.3.1.

Data types

The allowed expression type constructions differ from the expression type. According to the resulting
expression value.

The expression types of the language are:

object – the expression value is a reference to an object

uint – the expression value is an unsigned integer number

string – the expression value is a string – that means a text string

callable - the expression value is a reference to callable code or a method.

2.3.2.

Expression type Object

Notation

Notation of expression type Object:

Expression_Type_Object -> noobject | variable_type_object | (Expression_Type_Object)

| Reference_To_Item_Type_Object | Item_Collection_Type_Object

where:

noobject – the value marks empty i.e. non-existing object.

variable type object - it is the name of the variable declared as a type object. Except variables

explicitly declared there are implicitly declared variables for the following objects:

• Me – in every event there is automatically defined variable that refers to an object

whose event has been called.

• System objects – the name of the variable equals to a name type. More about system

objects in the following chapter.

• Object

type

BitmapObject, FontObject, GroupObject, PageObject, PanelObject and

WindowObject – the variables for all are automatically declared – the name equals to
an object name as it is determined in the design environment.

Advertising