ParaLib 2.0.15-master SHA: 2e03d68caa
Substitution of parameter values with texts

The numerical parameter value can be substituted to a text defined in Parameter.SubstitutionalTexts, if for example a list of options can be selected. This can be done in two ways:

  1. Each value defines excatly one option to select. In this case a list of options and their assigned values are set. Example:

    • 0 equates disable
    • 1 equates Enable with option 1
    • 2 equates Enable with option 2

    String in field Parameter.SubstitutionalTexts:

    "0=Disable;1=Option 1;2=Option 2"

  2. The values of a parameter are bit-coded. Every bit can be 1 or no and has a special named function Example:

    • Bit 0: Function 1
    • Bit 1: Function 2
    • Bit 7 to 9: Function 3

    String in field Parameter.SubstitutionalTexts:

    "[Function 1,0][Function 2,1][Function 3,7-9]"

Both functionalities can be used on the same Parameter. Example:

  • 0 equates disable
  • 1 equates Enable with option 1
  • 2 equates Enable with option 2
  • Bit 0: Function 1
  • Bit 1: Function 2
  • Bit 7 to 9: Function 3

String in field Parameter.SubstitutionalTexts:

"0=Disable;1=Option 1;2=Option 2[Function 1,0][Function 2,1][Function 3,7-9]"

Both functionalities can also be mixed. Example:

  • Bit 0: Function 1
    • 0 means on
    • 1 means off
  • Bit 1-2: Function 2
    • 0 means Option A
    • 1 means Option B
    • 2 means Option C
    • 3 is not possible (will not shown)

String in field Parameter.SubstitutionalTexts:

"[Function 1,0:0=on;1=off][Function 2,1-2:0=Option A;1=Option B;2=Option C]"