Expression type callable – CUE Design Director Script Language User Manual

Page 11

Advertising
background image

Reference Manual Design Director Script Language

www.cuesystem.com

Page 11 of 94

Function type string

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

Function

Description

Char$ (Expression_Type_Uint)

the value is a one character string whose first character bears the code of
the parameter value

Left$ (Expression_Type_String,
Expression_Type_Uint)

the value is a number of the (determined by the second parameter) first
characters of the first parameter. If the first parameter has fewer characters
than is the value of the second parameter, the value is the first parameter.

Right$ (Expression_Type_String,
Expression_Type_Uint)

the value is a number of (determined the second parameter) the last
character of the first parameter. If the first parameter has fewer characters
than is the value of the second parameter, the value is the first parameter

Mid$ (Expression_Type_String,
Expression_Type_Uint)

the value are the characters of the first parameter beginning with the one at
the position determined by the value of the second parameter (indexed from
number one). If the value of the second parameter is a greater than the
length of the first parameter, then the resulting value is an empty string
(i.e. ””) If the value of the second parameter is a zero, then an error is
generated.

Mid$ (Expression_Type_String,
Expression_Type_Uint,
Expression_Type_String)

the value is a number of (determined by the third parameter) characters of
the first parameter beginning with the one at the position determined by the
value of the second parameter (indexed from number one). If the sum value
of the second and the third parameter is greater than the length of the first
parameter, then the value is Mid$ (first parameter, second parameter). If the
value of the second parameter is a zero then an error is generated.

LTrim$ (Expression_Type_String) the value is a parameter without the leading spaces
RTrim$ (Expression_Type_String) the value is a parameter without the trailing spaces
Trim$ (Expression_Type_String)

the value is parameter without the leading and trailing spaces

Str$ (Expression_Type_Uint)

the value is a string containing textually expressed number of the parameter
value in a decimal number system

Hex$ (Expression_Type_Uint)

the value is a string containing textually expressed number of the parameter
value in the hexadecimal numberl system

Format$ (Expression_Type_Uint,
Expression_Type_Uint)

the first parameter has to contain the complete formatting string for
C-function sprintf. It enables to assign only one numerical parameter. The
value is a string created after sprintf function call to formatting string value
of the first parameter and numerical value of the second parameter

UCase$ (Expression_Type_String) the value is a string whose all letters are capital.
Lcase$ (Expression_Type_String) the value is a string whose all letters are small.

2.3.5.

Expression type callable

The most common type callable has been mentioned in chapter 2.2.2.1 Reference to Element. The
second possibility is the direct use name of the global macro.

Macros are defined in the design environment.

Advertising