Home > Process Modeling and Simulation Concepts > Expressions > Strings, Functions, and Arrays in Expressions
Strings, Functions, and Arrays in Expressions
iGrafx allows the use of strings, or non numeric values, in expressions. In addition, special iGrafx String-type functions are available for helping compose expressions. iGrafx also allows the use of arrays in expressions for ease of identifying multiple values in a single variable. Use the Expression Builder to more easily create expressions.
For reference on Strings and related Simulation functions, see System Defined Functions Reference.
For reference on Functions and Arrays, see the iGrafx Knowledge Base on the iGrafx web site.
Strings
Strings follow the same generally accepted rules in iGrafx as in other computing environments. For example, they are always enclosed within a pair of double quotes (“for example”).
Functions
iGrafx offers several functions for manipulating strings in expressions. All functions except Find, FindNoCase, Compare, CompareNoCase, and GetLength return a string result.
Some functions are specially designed for testing the types of expressions and obtaining the ID numbers for activities, processes, and swimlanes.
You can use arrays to create more powerful expressions that work harder for you with less coding required. In iGrafx, arrays are dynamically sized during simulation as you use them and do not require declaration. For example, x[0] starts an array and does not require a Dim x[10] to declare its parameters.
Some general rules apply for using arrays in iGrafx. For information, see Arrays in iGrafx.
Related Topics
See Also