Variable (Name example) | Description | Type | Default value (description) | Component configuration (description) | Remarks |
---|---|---|---|---|---|
- | - | - | - | - | - |
pNum | Description of parameter pNum | number | For example, set the default value to 100, which is a floating point type in C++ strategy. | Used to set the current parameter binding interface controls: component type, minimum value, maximum value, grouping, filter, etc. | Remarks on parameter pNum. The value of pNum is a numeric type. |
pBool | Description of parameter pBool | true/false | Use a switch control to set a default value, without an optional control | The same as above | Remarks on parameter pBool. The value of pBool is of Boolean type. |
pStr | Description of parameter pStr | string | For example, set the default value to: abc | The same as above | Remarks on parameter pStr, the value of pStr is a string type |
pCombox | Description of parameter pCombox | selected | Set one or more options in the options | The same as above | Remarks on parameter pCombox. The value of pCombox may take many forms. |
pSecretStr | Description of parameter pSecretStr | string | For example, set the default value to: xyz | The same as above | Remarks on parameter pSecretStr. The value of pSecretStr is a string type. |
Interface parameters are set in the strategy parameter area below the code editing area on the strategy editing page. Please note:
pNum
, pBool
, pStr
, pCombox
, pSecretStr
. It exists in the strategy code as a global variable, which means that the strategy parameters can be modified in the code.pCombox
. When “Support multiple selections” is not enabled in “Component Configuration”, the value of pCombox is the index of the currently selected option or the specific data (when data is bound to the option).
If “Support multiple selections” is enabled, the value of pCombox is an array containing the indexes or specific data (when binding data to the options) of all currently selected options.