Functions on IndexStrings
IndexStrings are strings whose sort order can be defined using an index number. The value of the IndexString can be language-dependent. In addition, the IndexString can have a different, stable, internal designation (the "code"), which is relevant for MM-Talk comparisons. IndexStrings are mainly used in the context of asset classes and enumerations in the context of user-defined fields and MM-Talk parameters.
IndexString.Code→String
Result: The Code
function returns the internal name of the designated object, the abbreviation or the original designation before translation.
IndexString.Index→number
Result: The Index
function returns the index number of an IndexString.
String.IndexedString
[Index:Number;Code:String]→IndexString
Result: The IndexedString
function returns the IndexString for string, index number and optionally code.
IndexString.String→String
Result: The String
function returns the string without an index number.