Expression type string – CUE Design Director Script Language User Manual

Page 10

Advertising
background image

Reference Manual Design Director Script Language

www.cuesystem.com

Page 10 of 94

Function type uint

In the language the following functions are defined that returns uint type:

Function

Description

typeof (Expression_Type_Object)

the value is identification (i.e. number) of the real type object

Len (Expression_Type_String)

the value is the length of data stored in the parameter

DecLen (Expression_Type_String)

the value is a declared length the parameter value

InStr (Expression_Type_String,
Expression_Type_String)

if the value of the first parameter contains as its understring the value of
the second parameter, the result value is the value position of the
second parameter in the value of the first parameter, Otherwise the
value is a zero.

Instr (Expression_Type_Unt,
Expression_Type_String,
Expression_Type_String)

If the value of the second parameter contains as its understring at the
higher position than the value of the first parameter the value of the third
parameter, the resulting value is the position value of the third parameter
in the value of the second parameter. Otherwise the value is a zero.

Asc (Expression_Type_String)

the value is the code of the first parameter value sign. If the value of the
parameter is an empty string, an error is generated

2.3.4.

Expression type string

Expression type string:

Expression_Type_String - > Expression_A_Type String + Expression_Type_String |

Expression_A_Type_String & Expression_Type_String | Expression_Type_String

Expression_A_String - > string_constant | variable_type_string | (Expression_Type_String) |

Reference_To_Element_Type_String | Function_Type_String

String constant

In general a string constant is a few characters closed in double quotation mark – i.e. character ”. If the
double quotation mark should be a part of the constant value, it is needed to write the double quotation
mark twice after each other.

Binary operator

The binary operators mentioned in this grammar have the following semantics:

Operator

Symbol

Value

Concatenation

+

the result is the concatenation of original type string values which are put
in one after another.

Concatenation

&

the result is the concatenation of original type string values which are put
in one after another. The operation is identical to the previous operation.

Advertising