StringListSplitter

MacroModule
genre Fields
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition helpers.def
see also StringUtils, StringListContainer, StringSplit
keywords stringlistcontainer

Purpose

The module StringListSplitter splits string lists into their components.

In addition, it is possible to search for elements.

Details

The module splits the string list in the String List field into its components.

There are two result tabs:

  • By Index Position: In this tab, the components of the string list are ordered and listed based on their (zero-based) index. The element numbers defined within the list are not considered. The first element is result #0, the second element is result #1 and so on. The splitting results are written to the fields List Index #n where n is a number in the range [0..11]. This means that only the first 12 results are considered. Any more results will be ignored. The field Last String Found contains the last splitting result.
  • By Element #: In this tab, the element number defined in the string list is considered. The components are ordered and listed as defined in the string list. The splitting results are written to the fields List Element #n where n is a number in the range [0..11]. This means that only list elements with the numbers [0..11] are considered. Any other elements will be ignored.

The fields Selected Index and Selected Element allow for picking a splitting result substring by its index or element number. The specified substring is held in the field Selected Index Substring or Selected Element Substring, respectively.

The box Search provides some options for searching the splitting results substrings for a specified result. If the search was successful, the Search successful flag is set to true, the found substring is written to the field Finding and its index position to the field Finding Index. The Finding Index is -1 if the searching operation was not successful.

Windows

Default Panel

../../../Modules/Macros/Helpers/mhelp/Images/Screenshots/StringListSplitter._default.png