Selector is a variable option parameter setting.  In use it provides a drop list of descriptive words that can selected as a list for a parameter.  Option selected determines the value of the parameter.  When the list is created, the first option name at the top of the list is assigned the value of zero.  Second option name is assigned the value of 2.  Each remaining option name will be assigned the next available integer value by their display sequence until all options are assigned a value.  Option name display order is adjustable during parameter creation or editing using the Move Up or Move Down button controls below the option listing area.  

 

Data-Type:

Description:

Selector

Selector is a variable option parameter setting.  

 

In use it provides a drop list of descriptive words that can selected as a list for a parameter.  Option selected determines the value of the parameter.   When the list is created, the first option name at the top of the list is assigned the value of zero.  Second option name is assigned the value of 2.  Each remaining option name will be assigned the next available integer value by their display sequence until all options are assigned a value.  Option name display order is adjustable during parameter creation or editing using the Move Up or Move Down button controls below the option listing area.

 

In operation, the user selects one of the options from a drop-down list of option names.  Selector Parameter Options can be stepped when the Step All option enabled when it is enabled.

Step All Values Option

Each text option item is created by the user using the New Parameter dialog.  The user created text-names for each option will be are available at the parameter section location on the Main screen.  Text can be any name that begins with a character, but each option name can only exist once in the Blox, but it can exist in other Blox as long the scope is set to Blox.

 

Selector Parameter Dialog Example:

Click to Enlarge; Click to Reduce.

Parameter Selector Creation Setup Example

Add Selector Option Dialog:

Click to Enlarge; Click to Reduce.

Adding a Selector  Name Example

 

Parameter Menu Example:

Click to Enlarge; Click to Reduce.

Selector Parameter Selection Example

Step All Values Requirement:

Click to Enlarge; Click to Reduce.

Selector Parameter Stepping Option Example

 

Example:

'  Condition Statement Follows Menu's Selected option
If SelectedItem = OPTION_1 Then
  '  Do Option_1 Stuff...
Else
  If SelectedItem = OPTION_2 Then
    '  Do Option_2 Stuff...
  Else
    If SelectedItem = OPTION_3 Then
        '  Do Option_3 Stuff...
    EndIf
  EndIf
EndIf

 

Links:

 

See Also:

Data Group and Types

 


Edit Time: 4/15/2018 9:31:38 AM


Topic ID#: 525

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software