INFORMIX
Visionary User's Guide
Appendix C: Functions and Support Syntax
Home Contents Index Master Index New Book

Built-in Functions

Visionary provides the following built-in functions.
Function Page

Boolean If()

page C-5

CenterPoint()

page C-5

ChildCount()

page C-6

ChildDepth()

page C-6

FormatNum()

page C-6

HasChildren()

page C-7

HasParent()

page C-7

HasSiblings()

page C-7

IsViewer()

page C-8

Length()

page C-8

Max()

page C-8

Min()

page C-9

MoveCenter()

page C-9

Numeric If()

page C-10

PointCount()

page C-10

Point If()

page C-10

PointList If()

page C-11

PointNumber()

page C-11

RGB()

page C-12

Rotate()

page C-12

ScaleXY()

page C-12

SeriesSum()

page C-13

SiblingCount()

page C-13

SiblingNumber()

page C-14

StockImage()

page C-14

String If()

page C-14

TranslateXY()

page C-15

For casting functions, see Appendix B.

Boolean If()

Returns a Boolean value: one of two values depending on whether the Boolean condition is TRUE or FALSE.

Syntax
If(cond, valueIfTrue, valueIfFalse)
Parameter Data Type Description

cond

Boolean

Expression to be tested

valueIfTrue

Boolean

Value returned if cond is TRUE

valueIfFalse

Boolean

Value returned if cond is FALSE

CenterPoint()

Returns a Point value: the center point for the list of points.

Syntax

ChildCount()

Valid only for hierarchy layouts.

Returns a Numeric value: the number of child data elements for the current data element.

Syntax

ChildDepth()

Valid only for hierarchy layouts.

Returns a Numeric value: the depth of the current data element relative to the highest parent data element.

Syntax

FormatNum()

Returns a String value: the string representing the formatted value.

Syntax

HasChildren()

Valid only for hierarchy layouts.

Returns a Boolean value: TRUE if the current data element has a child data element; FALSE otherwise.

Syntax

HasParent()

Valid only for hierarchy layouts.

Returns a Boolean value: TRUE if the current data element has a parent data element; FALSE otherwise.

Syntax

HasSiblings()

Valid only for hierarchy layouts.

Returns a Boolean value: TRUE if the current data element has sibling data elements; FALSE otherwise.

Syntax

IsViewer()

Returns a Boolean value: TRUE if the current value of the global parameter ViewerClass is of the specified viewer class; FALSE otherwise.

Syntax

Length()

Returns a Numeric value: the length of the specified string.

Syntax

Max()

Returns a Numeric value: the maximum value in the list of arguments.

Syntax

Min()

Returns a Numeric value: the minimum value in the list of arguments.

Syntax

MoveCenter()

Returns PointList values that are centered around the specified point.

Syntax

Numeric If()

Returns a Numeric value: one of two values depending on whether the Boolean condition is TRUE or FALSE.

Syntax

PointCount()

Returns a Numeric value: the number of data elements in the current data source.

Syntax

Point If()

Returns a Point value: one of two values depending on whether the Boolean condition is TRUE or FALSE.

Syntax

PointList If()

Returns a PointList value: one of two values depending on whether the Boolean condition is TRUE or FALSE.

Syntax

PointNumber()

Returns a Numeric value: zero-based index of the current data element in the list of data elements.

Syntax

RGB()

Returns a Color value: the combination of red, green, and blue values in the range 0 to 2553-1, inclusive.

Syntax
Each parameter is clipped to the range 0 to 255, inclusive.

Rotate()

Returns PointList values: a new list of points that reflects the rotation of the specified list of points about (0,0) by the specified rotation angle.

Syntax

ScaleXY()

Returns PointList values: the specified list of points that have been scaled by the specified scale factor.

Syntax

SeriesSum()

Returns a Numeric value: the accumulated result of the evaluation of the specified expression for each data element.

Syntax

SiblingCount()

Valid only for hierarchy layouts.

Returns a Numeric value: the number of sibling data elements, counting the current data element.

Syntax

SiblingNumber()

Valid only for hierarchy layouts.

Returns a Numeric value: the zero-based index of the current data element in its list of siblings.

Syntax

StockImage()

Returns an Image value: the specified image from the set of static images stored with the world.

Syntax

String If()

Returns a String value: one of two values depending on whether the Boolean condition is TRUE or FALSE.

Syntax

TranslateXY()

Returns PointList values: the specified list of points translated according to the specified offset.

Syntax



Visionary User's Guide, version 1.0
Copyright © 1998, Informix Software, Inc. All rights reserved.