JCL Help:JclSetToList
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: JclSetToList Function
Search in JCL Help
Search in all projects
Summary
Converts a set to a list of enumeration values.
Pascal
function JclSetToList(TypeInfo: PTypeInfo; const Value; const WantBrackets: Boolean; const WantRanges: Boolean; const Strings: TStrings): string;
Parameters
Parameters | Description |
TypeInfo: PTypeInfo | RTTI of the set as returned by System.TypeInfo(set type). |
const Value | Set value. |
const WantBrackets: Boolean | Flag to surround the result with brackets ('[' and ']'). When set to True, brackets will be present in the resulting string but not in the list. |
const WantRanges: Boolean | Flag to use range specifiers for adjacent values. When set to True adjacent values will be specified as 'First value .. Last value'. Ranges will be used in both the list as well as the resulting string. |
const Strings: TStrings | TStrings decendant to receive a list of values. Caller is responsible of creating/destroying the list. The list is not cleared on entry to JclSetToList. |
Return Value
The string will be the concatenation of all added values in the Strings parameter, optionally surrounded by '['and ']' depending on the value of WantBrackets.
Description
JclSetToList converts a set to a list of enumeration values. Additionally the set value is returned as a string optionally surrounded by brackets and optionally using ranges if adjacent values are set.
About
Unit
Donator
Theo Bebekis
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page